in Education by
What is the return type of typeof for standard JavaScript objects? (a) xml (b) object (c) dom (d) html I got this question during an interview. Question is taken from Shorthand functions and Multiple catch clauses topic in section Classes and Modules in JavaScript 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
Right option is (b) object To explain I would say: The typeof operator returns “object” for all standard JavaScript objects. It returns “object” for a null, “number” for NaN, “number” for Infinity, “object” for a “new Number(1)” and “object” for an array.

Related questions

0 votes
0 votes
    Which of these type parameters is used for a generic methods to return and accept any type of object? ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What type of scope is present in JavaScript? (a) Lexical (b) Literal (c) Both Lexical and Literal ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the return type of Math.random() method? (a) Integer (b) Double (c) String (d) Boolean ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What is the return type of lambda expression? (a) String (b) Object (c) void (d) Function This ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What should the return type of method where there is no return value? (a) Null (b) Empty ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What is the return type of the hash property? (a) Query string (b) Packets (c) String (d) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the return type of the script tag? (a) File I/O (b) Minify JavaScript (c) HTTP Request ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the return type of the remote server? (a) HTTP Response (b) HTTP Request (c) Get Request ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the return type of the method parseInt()? (a) String (b) Float (c) Integer (d) Date ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
...