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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Definitely keen for the parameterless try/catch, but what even is the point of javascript Symbols?
That got me curious. This article has some examples: medium.com/intrinsic/javascript-sy...
Cheers Michel, i also has some questions on javascript symbols and that helped me
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.