Skip to content

Commit 956c1b0

Browse files
re-edited the answers.
1 parent 6fe47f8 commit 956c1b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Predict and explain first...
22
// =============> write your prediction here
3-
// I predicted that the function will not return the correct result because the return statment is not correctly declared.
3+
I predicted that the function will not return the correct result because the return statment is not correctly declared.
44

55
function sum(a, b) {
66
return;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Predict the output of the following code:
44
// =============> Write your prediction here
5-
// I predict that because the num variable has been given a constant value, the program will give undefiened when the getLastDigt function called after.
5+
I predict that because the num variable has been given a constant value, the program will give undefiened when the getLastDigt function called after.
66

77

88
const num = 103;
@@ -36,4 +36,4 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);
3636

3737
// This program should tell the user the last digit of each number.
3838
// Explain why getLastDigit is not working properly - correct the problem
39-
// because it hasn't been gevine a paramater when it declared but when the num added as a paramater the program give the xpeacted outputs.
39+
because it hasn't been gevine a paramater when it declared but when the num added as a paramater the program give the xpeacted outputs.

0 commit comments

Comments
 (0)