We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ef451 commit ff816a3Copy full SHA for ff816a3
1 file changed
100Questions/100_JS_Que
@@ -596,7 +596,15 @@ let x =100;
596
console.log(x); //100
597
//Explaination: x=10 contain inside a block because we already declare with 100 outside so it will print 100.
598
-------------------------------------------------------------------------------------------
599
-
+const func = (function(a){
600
+ delete a;
601
+ return a;
602
+ } )(5)
603
+console.log(func);
604
+
605
+output: 5
606
+//delete keyword only use with object properties. here a is a variable so it will not work the variable.
607
+------------------------------------------------------------------------------------------
608
609
610
0 commit comments