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

Complete the code-reading result: typeof NaN evaluates to which string?

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

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

NaN is a special Number value, so typeof reports number for it. Treating NaN as a separate type mistakes a distinguished numeric value for a category in the type system.

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

Սկսել վարժանքը
Հարց 7: Complete the code-reading result: typeof NaN evaluates to… · JavaScript Fundamentals · Questena