Javascript Do you know the Symbol type?

An introduction to the Symbol type introduced by ES2015

Gerardo Fernández
6 min readMar 3, 2020

Among the numerous novelties that ES6 (also known as ECMAScript 2015) brought, there is one that I would say has gone quite unnoticed, especially if we compare its popularity with other features such as the spread operator or the tagged templates of which I already spoke in other articles:

As the title suggests, I am referring to the definition of the new Symbol type that comes to join the rest of the primitive types:string , number , boolean , null and undefined. So in this article I intend to list the main characteristics of this new type as well as its main uses.

Let’s see them!

The type Symbol

--

--

Gerardo Fernández

Entre paseo y paseo con Simba desarrollo en Symfony y React