Skip to content

Commit d07c452

Browse files
committed
Update Function's parameter for 2.js
1 parent 0cfe806 commit d07c452

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-debug

Sprint-2/2-mandatory-debug/2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// Predict the output of the following code:
44
// =============> Write your prediction here
5-
// we are using the constant variable num, which is declared as a global variable. Inside function, we have declare it with no
6-
// parameter, but, while calling a function we're passing an argument. It can't use that argument because function is declare
5+
// we are using the constant variable num, and it is declared as a global variable. The function is declared with no
6+
// parameter, but, while calling a function we're passing an argument. It can't use that argument as function is declare
77
// with no parameter so it will use the global variable whenever the function is being called.
88
/*const num = 103;
99

0 commit comments

Comments
 (0)