Skip to content

Commit 740109f

Browse files
authored
small corrections and additions for 196 & 197
1 parent 4960823 commit 740109f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3803,7 +3803,7 @@
38033803

38043804
196. ### What is the purpose of seal method
38053805

3806-
The **Object.seal()** method is used to seal an object, by preventing new properties 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 new properties 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
38073807
38083808
```javascript
38093809
const object = {
@@ -3823,7 +3823,7 @@
38233823
Below are the main applications of Object.seal() method,
38243824
38253825
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.
38273827
38283828
**[⬆ Back to Top](#table-of-contents)**
38293829

0 commit comments

Comments
 (0)