In JavaScript, the Symbol data type can be used to create _________.
- Objects
- Functions
- Unique identifiers
- Private variables
In JavaScript, the Symbol data type can be used to create unique identifiers. Symbols are often used as object property keys when you need to ensure that the key is unique and not accidentally overwritten. They are not used to create objects, functions, or private variables.
Loading...
Related Quiz
- The for...in loop will also iterate over the _______ properties of an object.
- How does the await keyword manage the Promise’s resolve value?
- Which of the following is NOT a primitive data type in JavaScript?
- Which object is heavily used in AJAX to interact with server-side data?
- What is the purpose of the default case in a switch statement?