Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is a JavaScript Map compared to a plain object?

  1. A A Map allows keys of any type and maintains insertion order with a size property
  2. B A Map can only hold strings
  3. C They are identical
  4. D A Map cannot be iterated
Answer

A Map allows keys of any type and maintains insertion order with a size property

Object keys are coerced to strings or symbols. Map keys can be objects or any value, and Map is optimised for frequent additions and removals.

All Javascript MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as