Question 174

What is the output of console.log(5 === "5") in JavaScript?

  1. Atrue
  2. Bundefined
  3. CError
  4. Dfalse
Show answerHide answer

Correct answer: (D) false

Explanation

=== checks value and type; == would give true.

From DSSSB TGT Computer Science Full Mock Test 2

This is question 174 of DSSSB TGT Computer Science Full Mock Test 2. 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.