JS Built-ins
π
en
|
es
Apprentice
0 XP
β
Search
βK
Exam β
Stats β
Learning Path
β
β°
β Home
Symbol
0 / 40 completed (0%)
All Difficulties
Beginner
Intermediate
Advanced
All
Not Started
Attempted
Completed
Exercises (40)
β
Symbol() β typeof is symbol
Beginner
β
Symbol() β each Symbol is unique
Beginner
β
Symbol() β description property
Beginner
β
Symbol() β no description is undefined
Beginner
β
Symbol() β cannot use new
Intermediate
β
Symbol.for() β same key returns same Symbol
Beginner
β
Symbol.for() vs Symbol() β not the same
Beginner
β
Symbol.for() β typeof result
Beginner
β
Symbol.for() β keyFor retrieves the key
Intermediate
β
Symbol.for() β description matches key
Beginner
β
Symbol.keyFor() β returns key for global symbol
Beginner
β
Symbol.keyFor() β undefined for local symbol
Beginner
β
Symbol.keyFor() β return type is string
Beginner
β
Symbol.keyFor() β well-known symbols return undefined
Intermediate
β
Symbol.keyFor() β consistent round-trip
Beginner
β
Symbol.description β basic usage
Beginner
β
Symbol.description β undefined when no arg
Beginner
β
Symbol.description β empty string
Beginner
β
Symbol.description β global symbol
Beginner
β
Symbol.description β typeof is string
Beginner
β
Symbol.toString() β 'Symbol(x)'
Beginner
β
Symbol.toString() β no description gives 'Symbol()'
Beginner
β
Symbol.toString() β includes description
Beginner
β
Symbol.toString() β typeof result
Beginner
β
Symbol.for().toString() β 'Symbol(key)'
Beginner
β
Symbol.iterator β typeof is symbol
Beginner
β
Symbol.iterator β arrays are iterable
Beginner
β
Symbol.iterator β strings are iterable
Beginner
β
Symbol.iterator β custom iterable object
Intermediate
β
Symbol.iterator β not in global registry
Intermediate
β
Symbol.toPrimitive β typeof is symbol
Beginner
β
Symbol.toPrimitive β number hint
Intermediate
β
Symbol.toPrimitive β string hint
Intermediate
β
Symbol.toPrimitive β typeof is always symbol
Beginner
β
Symbol.toPrimitive β not in global registry
Intermediate
β
Symbol.hasInstance β typeof is symbol
Beginner
β
Symbol.hasInstance β custom instanceof
Advanced
β
Symbol.hasInstance β always a symbol
Beginner
β
Symbol.hasInstance β not in global registry
Intermediate
β
Symbol.hasInstance β standard instanceof still works
Beginner