Q. Which one of the following is the correct output for the given JavaScript code?
Code:
const obj1 ={ property1:'15'};
const obj2 =Object.freeze(obj1);
obj2.property1='20';
console.log(obj2.property1);
β
Correct Answer: (C)
15