JS Quiz: Easy: Basic Map Initialization

What will be the size of the myMap after this code runs?

const myMap = new Map();
myMap.set('a', 1);
myMap.set('b', 2);
  • 0
  • 1
  • 2
  • undefined
0 voters