Skip to content

Commit 9c59b1a

Browse files
committed
Remove irrelevant variable declaration in getLastDigit function
1 parent 5c917cf commit 9c59b1a

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
@@ -27,7 +27,6 @@
2727

2828
// Finally, correct the code to fix the problem
2929
// =============> write your new code here
30-
// const num = 103 ---- becomes irrelevant
3130
function getLastDigit(n){
3231
return n.toString().slice(-1)
3332
}

0 commit comments

Comments
 (0)