Consider the following code snippet:
const obj = { name: 'John', age: 30 };
Object.freeze(obj);
obj.name = 'Jane';
console.log(obj.name);
What will be the output of the console.log statement?
Consider the following code snippet:
const obj = { name: 'John', age: 30 };
Object.freeze(obj);
obj.name = 'Jane';
console.log(obj.name);
What will be the output of the console.log statement?