Skip to content

Commit 5d354cd

Browse files
committed
update: Add output explanation for getLastDigit function to clarify why it always returns '3' in Sprint-2/2-mandatory-debug/2.js
1 parent 889a9a9 commit 5d354cd

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// The last digit of 806 is 3
2222

2323
// =============> write the output here
24+
// The output is always '3'
2425
// Explain why the output is the way it is
2526
// =============> write your explanation here
2627
// The output is always '3' because the function `getLastDigit` is using a global variable `num` which is set to 103

0 commit comments

Comments
 (0)