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 7d47a35 commit ee752c5Copy full SHA for ee752c5
1 file changed
Sprint-2/2-mandatory-debug/2.js
@@ -39,6 +39,7 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);*/
39
//----------------------------------------------------------------------------------------------------------
40
41
//new code :
42
+const num = 103;
43
function getLastDigit(num) {
44
return num.toString().slice(-1);
45
}
0 commit comments