Copyright

Date & Time in JavaScript: Use & Example

Instructions:

Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

What is the output of new Date(); constructor?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. Assume that the getMonth() method in JavaScript returns 10 as output for certain input. What is the month?

2. The JavaScript Date object considers 01 January, 1970 00:00:00 UTC as _____.

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

Test yourself on date and time in JavaScript with this multiple-choice quiz/worksheet combo. You'll answer questions on topics like the output of new Date(); constructor and the month associated with the getMonth() method in JavaScript when it returns 10.

Quiz & Worksheet Goals

See what you know about these areas:

  • The JavaScript Date object
  • Output of the set method in JavaScript
  • Way to repeat the setTimeout() method

Skills Practiced

  • Reading comprehension - make sure you know the most important information from the lesson on date and time in JavaScript, including the output of new Date(); constructor
  • Knowledge application - use your knowledge to answer questions about how to repeat the setTimeout() method and the JavaScript Date object for a certain month
  • Information recall - access the knowledge you've gained regarding the getMonth() method in JavaScript

Additional Learning

The lesson entitled Date & Time in JavaScript: Use & Example can teach you more about the following points:

  • Creation of a Date object
  • Outputs of a Date() constructor
  • Zero time
Support