Javascript Object freeze() is an inbuilt function that freezes the object. The frozen object can no longer be changed. The freezing an object prevents new properties from being added to it, existing properties from being removed, prevent changing the enumerability, configurability, or writability of existing properties, and prevents the values of existing properties from being changed.

Javascript Object Freeze Example

The syntax of Javascript Object.freeze() is following.

Object.freeze(obj)

The obj argument is the object which needs to freeze.

#javascript #js #object.freeze

Javascript Object Freeze Example | Object.freeze()
1.15 GEEK