OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » ES6 Quiz

In a WeakMap, keys must be ________ and not primitive values.

Difficulty level
  • Objects
  • Strings
  • Numbers
  • Booleans
In a WeakMap, keys must be objects, as primitive values are not allowed as keys. This is because WeakMap uses "weak" references to the keys, and primitive values do not have references like objects.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
ES6 Quiz
Quiz
Can dynamic imports be used in place of traditional static imports?
For side effects only, import a module without any exported bindings using import '________';.

Related Quiz

  • Can a Set contain elements of mixed data types in JavaScript?
  • What are the first and second arguments of a tag function in a tagged template literal?
  • How does tree shaking affect the handling of side effects in JavaScript modules?
  • The spread operator can be used in ES6 to clone an array without ________ the original array.
  • In a class hierarchy, if a method is overridden, how can you call the method from the parent class?

Leave a commentCancel

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

Hot Quiz

PHP QuizMachine Learning QuizReact.js QuizCyber Security QuizPython QuizNode.js QuizASP.NET Core QuizData Science Statistics QuizCSS QuizETL Testing QuizADO.NET QuizCheckpoint QuizServlet QuizData Modelling QuizAPI Testing QuizDatabase Testing QuizAlgorithm QuizBootstrap QuizComputer Science QuizCommvault Quiz
Copyright © 2025 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy