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