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