DEV Community

Discussion on: 8 Useful JavaScript ES2019 Features to Know About

Collapse
seriouslee13 profile image
SeriousLee13

Definitely keen for the parameterless try/catch, but what even is the point of javascript Symbols?

Collapse
metalmikester profile image
Michel Renaud

That got me curious. This article has some examples: medium.com/intrinsic/javascript-sy...

Collapse
frameworkz profile image
frameworkz

Cheers Michel, i also has some questions on javascript symbols and that helped me

Collapse
yohanchoidev profile image
YC John

Symbol returns a unique value, not like string. When you assign an object property name with a symbol, the property only can be access with the symbol. So, it prevents overwriting object properties by mistake. Also, you can use it for an iterator.