In JavaScript, typeof [] returns:
Show answerHide answer
Correct answer: (D) "object"
Explanation
Arrays are objects; use Array.isArray() to check.
Correct answer: (D) "object"
Explanation
Arrays are objects; use Array.isArray() to check.
This is question 174 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.