What is the output of the following code snippet?
const map = new Map([[1, 'one'], [2, 'two']]);
const values = [...map.values()];
console.log(values);
What is the output of the following code snippet?
const map = new Map([[1, 'one'], [2, 'two']]);
const values = [...map.values()];
console.log(values);