Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptimmutability patternsSingle-choice MCQ

Using `Object.freeze`, what is the value of `obj.a.b` after this runs?

const obj = Object.freeze({ a: { b: 1 } }); obj.a.b = 2; obj.a = { b: 3 }; console.log(obj.a.b);