You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -3803,7 +3803,7 @@
3803
3803
3804
3804
196. ### What is the purpose of seal method
3805
3805
3806
-
The **Object.seal()** method is used to seal an object, by preventing newproperties from being added to it and marking all existing properties as non-configurable. But values of present properties can still be changed as long as they are writable. Let's see the below example to understand more about seal() method
3806
+
The **Object.seal()** method is used to seal an object, by preventing newproperties from being added to it and marking all existing properties as non-configurable. But values of present properties can still be changed as long as they are writable. The next level of immutability would be the [`Object.freeze()`](#what-is-a-freeze-method) method. Let's see the below example to understand more about seal() method
3807
3807
3808
3808
```javascript
3809
3809
const object = {
@@ -3823,7 +3823,7 @@
3823
3823
Below are the main applications of Object.seal() method,
3824
3824
3825
3825
1. It is used for sealing objects and arrays.
3826
-
2. It is used to make an object immutable.
3826
+
2. It is used to make properties of an object non-configurable.
0 commit comments