Prevent any changes to an object, including adding, modifying or deleting properties
const person = { name: 'John', age: 25 }; Object.freeze(person); person.name = "Mark"; console.log(person); //Output: {name: 'John', age: 25}
const person = { name: 'John', age: 25 }; Object.freeze(person); person.name = "Mark"; console.log(person); //Output: {name: 'John', age: 25}