Advertisement
728x90
Object.isFrozen() method is used to determine if an object is frozen or not.An object is frozen if all of the below conditions hold true,
1. If it is not extensible.
2. If all of its properties are non-configurable.
3. If all its data properties are non-writable.
The usage is going to be as follows,
javascript
1const object = {
2 property: "Welcome JS world",
3 };
4
5Object.freeze(object);
6
7console.log(Object.isFrozen(object));Advertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 19
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
190of476