ES6 - Prevent Object Mutation

Tell us what’s happening: What’s wrong?? :smiling_face_with_tear:

Describe your issue in detail here.

Your code so far

function freezeObj() {
  const MATH_CONSTANTS = {
   const PI: 3.14
// Only change code below this line
// Only change code above this line
try {
  } catch(ex) {                    console.log(ex);
const PI = freezeObj();

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Mobile Safari/537.36

Challenge Information:

ES6 - Prevent Object Mutation

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Welcome to the forum @Carrymejane

You have modified the given code, so your solution will not pass the tests.

Please reset the step to restore the original code.

Both lines of your code will pass the tests, however the instructions asked to freeze one object.

Happy coding