Multiple choice

Which of the following statements is FALSE regarding the null data type?

  1. The null data type has only one value.

  2. The typeOf operator shows null as boolean values.

  3. null is not same as 0

  4. null is a keyword

  5. Value of a variable can be set as null.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The typeof operator in JavaScript identifies null values as being of type Object, not of type boolean.