Sign in
Log inSign up

What is the purpose of Symbol in ES6?

Ruth Alec's photo
Ruth Alec
·Sep 9, 2016

What’s the purpose of Symbol([description]) in ES6? I am reading Mozilla docs and I didn't find any clarifications on the usage of Symbol in ES6. It just explains that Symbol creates a new symbol every time even if the string is unique.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct