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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *