QuestenaUn entraînement qui indique quoi revoir ensuite
Question 7

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

  1. NaN
  2. numberBonne réponse
  3. undefined
  4. object

Explication

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.

Continuer avec ce test

Commencer l’entraînement
Question 7: Complete the code-reading result: typeof NaN evaluates to… · JavaScript Fundamentals · Questena