in Education by
Which of the following are static methods in JavaScript? (a) Date.parse() (b) Date.UTC() (c) Both Date.parse() and Date.UTC() (d) Date.clear() I had been asked this question in an interview for job. The origin of the question is Comparison of Core JavaScript versus Frameworks in division 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 answer is (c) Both Date.parse() and Date.UTC() To explain I would say: Date objects are created with the new Date() constructor. Date.parse() parses a string representation of a date and time and returns the internal millisecond representation of that date. Date.UTC() Returns the millisecond representation of the specified UTC date and time.

Related questions

0 votes
    How many static methods does a Date object have? (a) 3 (b) 5 (c) 4 (d) 2 This question ... questions, 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
    The lexical scooping in JavaScript is based on which of the following? (a) Segments (b) Blocks (c ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    Which of the following is not a JavaScript framework? (a) Rico (b) Prototype (c) Joco (d) DoJo ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    Which is the property that is triggered in response to JavaScript errors? (a) onexception (b) onmessage (c ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    Which is a wrapped Java array, accessed from within JavaScript code? (a) JavaArray (b) JavaClass (c) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    Why shouldn't JavaScript functions not be too long? (a) User friendliness (b) Tie up event loops ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    In the following circuit, the value of Norton's resistance between terminals a and b are ___________ (a) RN = ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
...