JS Built-ins
Symboliteratorbeginner

Symbol.iterator β€” typeof is symbol

πŸ“– Usage Example
typeof Symbol.iterator   // β†’ 'symbol'

Symbol.iterator is a well-known symbol that makes objects iterable.

Symbol.iterator

Symbol.iterator is a well-known symbol used to make objects iterable (e.g. with for...of or spread).

Challenge: Verify its type.

πŸ’‘ Hints (1)
  • β€’ Well-known symbols are properties on the Symbol constructor.