const person = { name: 'John', age: 30, }; Object.freeze(person); person.age = 31; // This assignment will be ignored in strict mode or throw an error in non-strict mode. console.log(person); // Output: { name: 'John', age: 30 }