You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-2/2-mandatory-debug/2.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,3 +37,4 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);
37
37
38
38
// This program should tell the user the last digit of each number.
39
39
// 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