Question 174

In JavaScript, typeof [] returns:

  1. A"undefined"
  2. B"list"
  3. C"array"
  4. D"object"
Show answerHide answer

Correct answer: (D) "object"

Explanation

Arrays are objects; use Array.isArray() to check.

From DSSSB TGT Computer Science Full Mock Test 5

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.