QuestenaUn entraînement qui indique quoi revoir ensuite
Question 11

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

  1. falseBonne réponse
  2. true
  3. undefined
  4. TypeError

Explication

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.

Continuer avec ce test

Commencer l’entraînement
Question 11: What is the result of Symbol("x") === Symbol("x")? · JavaScript Fundamentals · Questena