© Deepak Grover and Hanu Kunduru 2017

Deepak Grover and Hanu Prateek Kunduru, ES6 for Humans, https://doi.org/10.1007/978-1-4842-2623-0_6

6. Symbols in ES6

Deepak Grover and Hanu Prateek Kunduru2

(1)Delhi, India

(2)Seattle, Washington, USA

Since way back in 1996, around the time when JavaScript was first standardized and ECMA attempted to carve out a standard specification, there have been five primitive data types in JavaScript : Boolean, Number, String, Undefined, and Null where each type represents a value. But now ES6 introduces a brand new primitive data type - Symbol. In this chapter, we will go over, in detail, this new primitive type and its applications.

Symbols

Symbols represent a unique value and at its heart, a symbol is a unique token ...

Get ES6 for Humans: The Latest Standard of JavaScript: ES2015 and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.