You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7d17723
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Sprint-3/2-mandatory-debug/2.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@
4
4
// =============> Write your prediction here
5
5
// 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
6
6
7
-
constnum=103;
7
+
// const num = 103;
8
8
9
-
functiongetLastDigit(){
10
-
returnnum.toString().slice(-1);
11
-
}
9
+
// function getLastDigit() {
10
+
// return num.toString().slice(-1);
11
+
// }
12
12
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)}`);
16
16
17
17
// Now run the code and compare the output to your prediction
0 commit comments