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
{{ message }}
Repository navigation
Commit 286c2a2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Sprint-3/2-mandatory-debug/2.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,10 @@
28
28
29
29
// This program should tell the user the last digit of each number.
30
30
// Explain why getLastDigit is not working properly - correct the problem
31
-
//-The function was looking at the outside "num" but Now there are two (num) one outside the scope "const num= 103" and i added another inside the function scope.
31
+
//-I removed the unnecessary const num= 103 because the function already receives num as a parameter.
32
32
//-The function calculates something and returns it then console.log outside receives that returned value and prints it.
0 commit comments