Skip to content

ES6 In Depth: Symbols

Jason Orendorff wrote an interesting post on ES6 Symbols:

Since JavaScript was first standardized in 1997, there have been six types. Until ES6, every value in a JS program fell into one of these categories.
  • Undefined
  • Null
  • Boolean
  • Number
  • String
  • Object
...

ES6 symbols are values, but they’re not strings. They’re not objects. They’re something new: a seventh type of value.

https://hacks.mozilla.org/2015/06/es6-in-depth-symbols/

Join 9,500+ smart developers

Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

No spam. Unsubscribe anytime. You can also follow me on X.

Found something interesting to share? Submit a link to the community section.