Skip to content

Commit 3d263d3

Browse files
remove unused code
1 parent 3ab0c0a commit 3d263d3

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • Sprint-3/2-mandatory-debug

‎Sprint-3/2-mandatory-debug/2.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);*/
2525
// I was wrong in all the function call, the result is the same because the function always uses the global num.
2626

2727
// Finally, correct the code to fix the problem
28-
let num = 103;
2928

3029
function getLastDigit(num) {
3130
return num.toString().slice(-1);

0 commit comments

Comments
 (0)