The Object.freeze() method freezes an object preventing it from being changed, it also prevents the prototype from being changed.
The Object.freeze() method freezes an object preventing it from being changed, it also prevents the prototype from being changed.