What is a JavaScript Map compared to a plain object?
- A A Map allows keys of any type and maintains insertion order with a size property
- B A Map can only hold strings
- C They are identical
- 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.





