I must be missing something here. I try to put a value into a map but it doesn't want to work.
const tempMap = new Map();
tempMap.set("bla", "bla");
console.log(tempMap)
--> output: {}
Can someone explain to me why it is like that? Shouldn't the output have the added value in it?
Array.from(tempMap.keys())orArray.from(tempMap.values())console.log(tmpMap.get("bla"))console.log(tempMap.has("bla"))