Back to course home
0% completed
Vote For New Content
Quiz
How do you add a key-value pair to a map in JavaScript?
A
map.add(key, value);
B
map.set(key, value);
C
map.push(key, value);
D
map[key] = value;
.....
.....
.....
Like the course? Get enrolled and start learning!
On this page