QuestenaПрактика, после которой понятно, что повторить
Вопрос 11

What is the result of Symbol("x") === Symbol("x")?

  1. falseПравильный ответ
  2. true
  3. undefined
  4. TypeError

Объяснение

Each call to Symbol creates a unique value, so two calls remain unequal even when their descriptions match. The description is useful text but does not act as a shared identity or intern the symbols.

Продолжить работу с тестом

Начать тренировку
Вопрос 11: What is the result of Symbol("x") === Symbol("x")? · JavaScript Fundamentals · Questena