Question 44 of 10044%
44
This code sets both a number key and its string equivalent on a plain object and on a Map. What gets logged?
const obj = {};
obj[1] = "one";
obj["1"] = "uno";
const map = new Map();
map.set(1, "one");
map.set("1", "uno");
console.log(Object.keys(obj).length);
console.log(map.size);
44/100