MCQ
Date () method is stored in datel1 variable. Which statement is used to present current date and time as string?
  • date1.toString()
  • B
    date1.Tostring()
  • C
    date1.date()
  • D
    date1.getTime()

Answer

Correct option: A.
date1.toString()
date1.toString()

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free