Skip to content

Commit 832d9bb

Browse files
fix: update explanation for getLastDigit function to clarify parameter usage
1 parent e72b13a commit 832d9bb

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
@@ -37,3 +37,4 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);
3737

3838
// This program should tell the user the last digit of each number.
3939
// Explain why getLastDigit is not working properly - correct the problem
40+
// we corrected the problem by adding a parameter to the function getLastDigit, so it now takes a number as an argument and returns the last digit of that number.

0 commit comments

Comments
 (0)