in Education by
If we have an object r and want to know if it is a Range object, we can write ______________ (a) r typeof Range (b) r is Range (c) r equals Range (d) r instanceof Range This question was posed to me during an interview. I want to ask this question from Comparison of Core JavaScript versus Frameworks topic 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
The correct answer is (d) r instanceof Range Explanation: To know the range object r instanceof range is used. The r instanceof Range returns true if r inherits from Range.prototype. The instanceof operator does not actually check whether r was initialized by the Range constructor.

Related questions

0 votes
0 votes
    Two similar coils have self-inductance of 20 mH each. Coefficient of coupling is 0.4. The mutual inductance M is ... GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 16, 2021 in Education by JackTerrance
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
    The two windings of a transformer have an inductor of 2 H each. If mutual inductor between them is also 2 H, ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
0 votes
0 votes
    An ideal capacitor is charged to a voltage V and connected at t=0 across an ideal inductor L. If we take ω ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 19, 2021 in Education by JackTerrance
...