32.
Which method returns the current date and time?
new Date()
getCurrentDate()
currentDateAndTime()
getCurrentDateTime()
Correct: A
The correct answer is A1: new Date(). The new Date() method creates a new Date object, which represents the current date and time. This method is commonly used to get the current date and time in JavaScript.