Question 1 of 16
JavaScript Symbols and Property Protocols Quiz
Check your understanding of Symbol identity, property keys, reflection, the global registry, and standardized protocol hooks.
Knowledge check
JavaScript Symbols and Property Protocols Quiz
Check your understanding of Symbol identity, property keys, reflection, the global registry, and standardized protocol hooks.
- Stuck? Each question has an optional hint.
- Skip a hard question and review it before your results.
- Questions and answer options can shuffle between attempts.
You can retake this quiz whenever you like.
Question 2 of 16
Which values can be object property keys?
Question 3 of 16
How do you access a property whose key is stored in symbolKey?
Question 4 of 16
Which API returns all own property keys, including Symbols?
Question 5 of 16
What is special about Symbol.for("x")?
Question 6 of 16
What does Symbol.keyFor return for a registered Symbol?
Question 7 of 16
What are well-known Symbols primarily used for?
Question 8 of 16
Which hook connects an object to synchronous iteration?
Question 9 of 16
Which hook is preferred by for await...of when present?
Question 10 of 16
What must Symbol.toPrimitive return?
Question 11 of 16
What does Symbol.toStringTag influence?
Question 12 of 16
Which operator can consult Symbol.hasInstance?
Question 13 of 16
Which method consults Symbol.isConcatSpreadable?
Question 14 of 16
Which string operation consults Symbol.match on its argument?
Question 15 of 16
Which comparison is true?
Question 16 of 16
Which mental model best describes a standardized Symbol protocol?
Quiz results
Review
-
Which statement about Symbol() is correct?Hint used
-
Which values can be object property keys?Hint used
-
How do you access a property whose key is stored in symbolKey?Hint used
-
Which API returns all own property keys, including Symbols?Hint used
-
What is special about Symbol.for("x")?Hint used
-
What does Symbol.keyFor return for a registered Symbol?Hint used
-
What are well-known Symbols primarily used for?Hint used
-
Which hook connects an object to synchronous iteration?Hint used
-
Which hook is preferred by for await...of when present?Hint used
-
What must Symbol.toPrimitive return?Hint used
-
What does Symbol.toStringTag influence?Hint used
-
Which operator can consult Symbol.hasInstance?Hint used
-
Which method consults Symbol.isConcatSpreadable?Hint used
-
Which string operation consults Symbol.match on its argument?Hint used
-
Which comparison is true?Hint used
-
Which mental model best describes a standardized Symbol protocol?Hint used