Skip to content

Commit 2feb2bf

Browse files
committed
practicing
1 parent 70ef111 commit 2feb2bf

File tree

1 file changed

+2
-1
lines changed
  • Sprint-2/2-mandatory-debug

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);
1919
//The last digit of 806 is 3
2020
//
2121

22-
// Explain why the output is the way it is
22+
// Explain why the output is the way it is:
23+
2324
//num is always 103 inside the function (from the global variable).
2425
//So, every call to getLastDigit() returns "3" (the last digit of 103).
2526
//The arguments you pass (like 42, 105) are ignored because the function doesn't take parameters.

0 commit comments

Comments
 (0)