Question PRG-JS-0071
HardWhat is the output of this program?
const m = new Map([[1, "a"], ["1", "b"]]);
const o = { 1: "a", "1": "b" };
console.log(m.size, Object.keys(o).length, m.get(1), o[1]);
- A.
2 1 a b
- B.
2 2 a a
- C.
Sign up free to see the answer and a step-by-step explanation.