Prevent Object Mutation - My Code is Correct right?

Tell us what’s happening:
I edited this with confidence that I would pass the tests the first time. With this code I receive the error TypeError: Cannot assign to read only property ‘PI’ of object ‘#<Object>’ in the console. I’ve even gone as far as looking at the Hint Spoiler, copied and pasted that solution and I still get the same error output in the console. What am I missing???

I am passing all the tests with the exception saying that PI should equal 3.14. If I change Object.freeze(MATH_CONSTANTS); to read as Object.freeze(); the error in the console disappears and the new output in the console is PI equals 3.14 but still doesn’t pass the last test. This would be incorrect code right?

Your code so far


function freezeObj() {
  "use strict";
  const MATH_CONSTANTS = {
    PI: 3.14
  };
  // change code below this line
  Object.freeze(MATH_CONSTANTS);

  // change code above this line
  try {
    MATH_CONSTANTS.PI = 99;
  } catch( ex ) {
    console.log(ex);
  }
  return MATH_CONSTANTS.PI;
}
const PI = freezeObj();

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/prevent-object-mutation

Must have been a server bug because now my code is passing all the tests.