Some Simple Conversions - Self Study Exercise
As mentioned in lecture, it is very important to be willing and able to study code on your own and try to learn from it.
Examine this page. In particular, note:
- The use of multiple functions on the page. This is fine - and in fact, very common!
- Having different buttons - each of which invokes its own function.
- Extracting a specific part of the date from JavaScript's Date() function.
- The need for the type attribute in the button tag.