+ 3
Symbol type in JavaScript
Hello, everyone! Could you please help me with understanding "symbol" type in JavaScript? After reading several forums, looking for information in books and web docs, I ended up with the thought that the main reason for introducing this type was to allow JavaScript developers add new features to the language like [Symbol.iterator]() and others without a danger to spoil old code. Please correct me if I'm mistaken. Also are there any situations when symbols can be handy for ordinary developers?
1 Resposta
+ 7
You can refer below link it has details explanation regarding same.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol