**can you anyone explain what happens when you use console.log after the getting the right answer
**
**Your code so far**
function freezeObj() {
const MATH_CONSTANTS = {
PI: 3.14
};
// Only change code below this line
Object.freeze(MATH_CONSTANTS)
// Only change code above this line
try {
MATH_CONSTANTS.PI = 99;
} catch(ex) {
console.log(ex);
}
return MATH_CONSTANTS.PI;
}
const PI = freezeObj();
console.log(freezeObj()) // this gives ``` // running tests
// tests completed
// console output
[TypeError: Cannot assign to read only property 'PI' of object '#<Object>']
[TypeError: Cannot assign to read only property 'PI' of object '#<Object>']
3.14
[TypeError: Cannot assign to read only property 'PI' of object '#<Object>']
[TypeError: Cannot assign to read only property 'PI' of object '#<Object>']
3.14 ```
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
Challenge: ES6 - Prevent Object Mutation
Link to the challenge: