Квиз по JavaScript: Types & typeof

This JavaScript quiz covers the primitive types and objects, and what the typeof operator says about each. You will meet the famous quirks, like typeof null and typeof NaN, and learn the right way to check for an array.

Лёгкий 10 вопроса ~5 минуты Проходной балл: 80% Node.js 22

Выберите режим

Вы играете как гость: войдите, чтобы сохранить XP и серию.

Пример вопроса

Вопрос 1 из 10

What does this print?

console.log(typeof 42);
Показать ответ

A. number JavaScript has one number type for both whole numbers and decimals, and typeof returns lowercase strings. There is no separate integer type (except bigint for very large values).

Что проверяет этот квиз

  • The primitive types and objects
  • What typeof returns for numbers, strings, functions and arrays
  • The typeof null quirk
  • undefined vs null
  • Checking for arrays with Array.isArray()

Частые вопросы

Нужен ли аккаунт?

Нет. Играть может любой. Войдите, чтобы сохранять XP, серию, значки и историю.

Можно пройти ещё раз?

Да. Лучший результат сохраняется, а вопросы и ответы каждый раз перемешиваются.