Skip to content

Commit ee752c5

Browse files
committed
Fix review feedback on mandatory-debug 2.js
1 parent 7d47a35 commit ee752c5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Sprint-2/2-mandatory-debug

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);*/
3939
//----------------------------------------------------------------------------------------------------------
4040

4141
//new code :
42+
const num = 103;
4243
function getLastDigit(num) {
4344
return num.toString().slice(-1);
4445
}

0 commit comments

Comments
 (0)