Explain the motivation behind Symbols to ES6.
Symbols are a particular kind of object, newly added in the sixth version of ECMAScript which can be used as a unique property name in the objects. Using Symbol in the place of String (as it was done in the previous versions) allows the programmer to use different modules that can create properties that will not be problematic to each other. Another huge benefit of Symbols is that they can be made private and the properties defined cannot be accessed by any user or developer who does not have direct access to the Symbol. They comprise of a function that can be used to create different symbols that can work differently. But they do not have any literal syntax, unlike the other primitives of JavaScript.
BY Best Interview Question ON 06 Oct 2019