Dynamic Webpage With Scripting Language (3360705) MCQs

MCQs of Object Models in JavaScript

Showing 61 to 62 out of 62 Questions
61.
The _______ method returns the number of milliseconds since January 1, 1970.
_______ મેથડ 1 જાન્યુઆરી, 1970 થી મિલિસેકન્ડની સંખ્યા આપે છે.
(a) getSeconds()
(b) getTime()
(c) getMinutes()
(d) getMilliseconds()
Answer:

Option (b)

62.
Which is the correct sequence of date object parameters in JavaScript?
જાવાસ્ક્રિપ્ટમાં date ઓબ્જેક્ટના parameters સાચો ક્રમ કયો છે?
(a) new Date(day, month, year, hours, minutes, seconds, milliseconds)
(b) new Date(milliseconds, seconds,minutes, hours, day, month, year)
(c) new Date (day, hours, minutes, seconds, milliseconds)
(d) new Date(year, month, day, hours, minutes, seconds, milliseconds)
Answer:

Option (d)

Showing 61 to 62 out of 62 Questions