Assignment012b
JavaScript - Date() - The Time
JavaScript comes prebuilt with several objects for you to use. One of the objects is the Date() object. You can use the Date() object to display the user's computer day and time. Here's how you go about it:
Create a variable to hold the Day object
Use the Day object methods (actions) to get parts of the day
Use the concatination symbol + to put the parts together.