6.
What is the main usage of the Symbol data type in ES6?
To create classes
To create unique identifiers for objects
To declare variables
To create arrays
Correct: B
The Symbol is a primitive data type whose instances are unique and immutable. Its primary usage is to create unique identifiers for object properties which can help in avoiding name clashes between properties, especially when using third-party libraries or inheriting code.