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 54e11ce commit 97bdb37Copy full SHA for 97bdb37
Sprint-2/2-mandatory-debug/2.js
@@ -24,7 +24,7 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);
24
// =============> the variable num is assigned to the value 103 in the global scope and not assigned to any value in the function scope
25
// Finally, correct the code to fix the problem
26
// =============> write your new code here
27
-function getLastDigit(num) { // we add the identier num as parameter to the function getLastDigit
+function getLastDigit(num) { // we add the identifier num as parameter to the function getLastDigit
28
return num.toString().slice(-1);
29
}
30
0 commit comments