Beginner
JavaScript
Q30 / 100
What is a Map in JavaScript?
Correct! Well done.
Incorrect.
The correct answer is B) A collection of key-value pairs where keys can be any type
B
Correct Answer
A collection of key-value pairs where keys can be any type
Explanation
Map supports any key type (including objects), maintains insertion order, and has methods .get(), .set(), .has(), .delete().
Progress
30/100