Skip to content

Commit 3c98883

Browse files
committed
Function Params
1 parent effa6f8 commit 3c98883

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Functions/Code-Practice/let(vs)var.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ print(count);
1515
incement();
1616
print(count);
1717

18-
// print = 3; FIXME: Read about TypeError: Assignment to the Constant Variable
18+
// 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

Comments
 (0)