symbol - a new ES6 primitive type and its use cases

ES6 introduces a new primitive type for JavaScript: Symbols. The global Symbol() function creates a JavaScript symbol. Each time the Symbol() function is called, a new unique symbol is returned.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.