Sorry for a naive question. I am a newbie to freecodecamp and I was trying to solve the algorithm problems. I created an object as:
var hashMap = new Map(); hashMap.set(1, 'hello');
I expect an element in my hashmap object. However, when I check it using:
The output is:
Can anyone please point out what I am doing wrong?