QuestenaPractice that shows what to review next
Question 7

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

  1. NaN
  2. numberCorrect answer
  3. undefined
  4. object

Explanation

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.

Continue with this test

Start practice
Question 7: Complete the code-reading result: typeof NaN evaluates to… · JavaScript Fundamentals · Questena