symbol(JavaScript Variable data type)

Japanese version. Symbol is a new data type introduced in ECMAScript 6 (ES6) that is used to represent a unique identifier. It is a primitive data type, like strings and numbers, and is immutable with a unique value. A symbol value is created by calling the Symbol() function. You can also pass an optional description as an argument to the Symbol() function, which is useful for debugging because it is displayed by the toString() method. The main use of symbol is as a property name in objects. When used as a property name, the property can only be accessed using the [ ] operator. symbol is used to represent unique … Continue reading symbol(JavaScript Variable data type)