QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 3

What does the expression typeof null evaluate to?

  1. undefined
  2. null
  3. objectՃիշտ պատասխան
  4. number

Բացատրություն

The typeof operator has a specified special case for null and produces the string object. Expecting null would seem intuitive from the value's primitive category, but that is not the operator's defined result.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 3: What does the expression typeof null evaluate to? · JavaScript Fundamentals · Questena