What is the output of the following code? const map = new Map([[1, ‘a’], [2, ‘b’], [3, ‘c’]]); const obj = Object.fromEntries(map); console.log(typeof Object.keys(obj)[0], Object.keys(obj)[0]);
JavaScript ProfessionalHard
JavaScript Professional — Hard
What is the output of the following code? const map = new Map([[1, ‘a’], [2, ‘b’], [3, ‘c’]]); const obj = Object.fromEntries(map); console.log(typeof Object.keys(obj)[0], Object.keys(obj)[0]);