T Tâm Tây New member Sep 19, 2021 #1 What is the code for getting the current time? A. now = new Date(); B. var now = new Date(); C. var now = Date(); D. var now = new Date(current);
What is the code for getting the current time? A. now = new Date(); B. var now = new Date(); C. var now = Date(); D. var now = new Date(current);
H Huỳnh Hiền New member Sep 19, 2021 #2 Answer: b Explanation: Date() is a predefined function in javascript which returns the date in string form. The above code determines the current time and stores it in the variable “now”. Upvote 0 Downvote
Answer: b Explanation: Date() is a predefined function in javascript which returns the date in string form. The above code determines the current time and stores it in the variable “now”.