File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 90
90
| 83 | [ What is eval] ( #83-what-is-eval ) |
91
91
| 84 | [ How can you assign default values to variables] ( #84-how-can-you-assign-default-values-to-variables ) |
92
92
| 85 | [ How to determine if an object is extensible or not] ( #85-how-to-determine-if-an-object-is-extensible-or-not ) |
93
+ | 86 | [ In how many ways we can make an object non-extensible] ( #86-in-how-many-ways-we-can-make-an-object-non-extensible ) |
93
94
94
95
### 1. What is JavaScript
95
96
* JavaScript is a scripting language used to create dynamic and interactive websites. It is supported by all major web browsers.
@@ -1244,6 +1245,15 @@ Object.isExtensible() method is used to determine if an object is extensible or
1244
1245
const obj1 = { name: ' surbhi' };
1245
1246
console .log (Object .isExtensible (obj1));// output ========> true
1246
1247
` ` `
1248
+ **[:top: Scroll to Top](#javascript-interview-questions)**
1249
+
1250
+ ### 86. In how many ways we can make an object non-extensible
1251
+
1252
+ - Object.preventExtensions()
1253
+ - Object.seal()
1254
+ - Object.freeze()
1255
+
1256
+ **[:top: Scroll to Top](#javascript-interview-questions)**
1247
1257
1248
1258
## Output Based Questions
1249
1259
You can’t perform that action at this time.
0 commit comments