We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b194762 commit 144eb33Copy full SHA for 144eb33
Sprint-2/2-mandatory-debug/2.js
@@ -27,7 +27,7 @@
27
// This program should tell the user the last digit of each number.
28
// Explain why getLastDigit is not working properly - correct the problem
29
//Every call ignores the number that is passed in the argument and just returns "3"
30
-const num = 103;
+
31
32
function getLastDigit(num) {
33
return num.toString().slice(-1);
0 commit comments