Back to course home
0% completed
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!
Table of Contents
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible