There was an error while loading. Please reload this page.
1 parent effa6f8 commit 3c98883Copy full SHA for 3c98883
Functions/Code-Practice/let(vs)var.js
@@ -15,4 +15,11 @@ print(count);
15
incement();
16
print(count);
17
18
-// print = 3; FIXME: Read about TypeError: Assignment to the Constant Variable
+// print = 3; FIXME: Read about TypeError: Assignment to the Constant Variable
19
+
20
+/**
21
+ * TODO: If we pass arguments to any Function, That Function will make a copy of that variable
22
+ * TODO: and It takes as a parameter. and It's gonna be the local copy of that global argument.
23
+ * TODO: So that we can't modify the Global variable. It's a good practise to pass an argument and take in
24
+ * TODO: as parameter and creates a new copy in the LOCAL EXECUTION CONTEXT in the CALLSTACK.
25
+ */
0 commit comments