Skip to content

Commit 7d17723

Browse files
committed
Comment out getLastDigit function and related console logs for debugging
1 parent d2547c9 commit 7d17723

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • Sprint-3/2-mandatory-debug

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
// =============> Write your prediction here
55
// I predict the output would print the last digits of '42', '105', and '806' because the function name is 'getLastDigit' and it's been called by the input values as arguments
66

7-
const num = 103;
7+
// const num = 103;
88

9-
function getLastDigit() {
10-
return num.toString().slice(-1);
11-
}
9+
// function getLastDigit() {
10+
// return num.toString().slice(-1);
11+
// }
1212

13-
console.log(`The last digit of 42 is ${getLastDigit(42)}`);
14-
console.log(`The last digit of 105 is ${getLastDigit(105)}`);
15-
console.log(`The last digit of 806 is ${getLastDigit(806)}`);
13+
// console.log(`The last digit of 42 is ${getLastDigit(42)}`);
14+
// console.log(`The last digit of 105 is ${getLastDigit(105)}`);
15+
// console.log(`The last digit of 806 is ${getLastDigit(806)}`);
1616

1717
// Now run the code and compare the output to your prediction
1818
// =============> write the output here

0 commit comments

Comments
 (0)