Exercise Date and Time

  1. Add a new menu entry "My Age"
  2. Create data types for the following:
    1. myBirthDay (new Date())
    2. myBirthTime (new Time())
    3. myAge (Number)
    4. timeOfDay (Text)
  3. Update timeOfDay with "morning" or "afternoon" depending on the birth hour.
  4. Display a single message with the age, year and time of birth.
  5. Build and test

Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com