in Education by
How many static methods does a Date object have? (a) 3 (b) 5 (c) 4 (d) 2 This question was addressed to me in a national level competition. The origin of the question is Comparison of Core JavaScript versus Frameworks in section Caching, Debugging and Animation of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Correct choice is (d) 2 Easiest explanation: Date objects are created with the new Date() constructor. The Date object defines two static methods namely Date.parse() and Date.UTC().

Related questions

0 votes
    Which of the following are static methods in JavaScript? (a) Date.parse() (b) Date.UTC() (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
0 votes
    How many parameters does the replaceState() method take? (a) 2 (b) 3 (c) 4 (d) 5 The ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    How many parameters does the WebPageTest API accept? (a) 5 (b) 6 (c) 7 (d) 8 I had ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    What does the rel attribute of a variable have when the type of file is CSS? (a) css (b) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    What is the parameter of the method Date.parse()? (a) date (b) string (c) datestring (d) string ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    To which of the following object does the print() method belong to? (a) window (b) document (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    Which of the following are methods not used to save charts? (a) pdf() (b) jpeg() (c) bmp( ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    How many types of dependent or controlled sources are there? (a) 1 (b) 2 (c) 3 (d) 4 The question ... Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
0 votes
    In nodal analysis how many nodes are taken as reference nodes? (a) 1 (b) 2 (c) 3 (d) 4 The question ... Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    In case of ideal current sources, they have ___________ (a) zero internal resistance (b) low value of voltage (c ... GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
...