What will be the output of the following code?
const map1 = new Map([[1, 'one']]);
const map2 = new Map(map1);
console.log(map2.get(1));
What will be the output of the following code?
const map1 = new Map([[1, 'one']]);
const map2 = new Map(map1);
console.log(map2.get(1));