Are you ready for another code challenge? Join me in this video as you test your coding knowledge with the simple quiz questions.
Don't forget to make your guess in the comments below.
-------------------------------------------------------------------------------------------
🔔Like and subscribe for more videos. 🔔
------------------------------------------------------------------------------------------
Answer: OPTION A: 1
Explanation:
Object.freeze() makes an object immutable in JavaScript. Any attempt to modify the object will fail silently (or throw a TypeError in strict mode).
Therefore, changing obj.a to 2 has no effect, and obj.a remains 1.