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
Copy file name to clipboardExpand all lines: Sprint-2/2-mandatory-debug/0.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
// console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
12
12
13
13
// =============> write your explanation here
14
-
//The console.log() inside the funtion will print a*b but when we call the function will return() undefined means will return nothing)for the two variables a and b
14
+
//The console.log() inside the funtion will print a*b but when we call the function will return undefined
Copy file name to clipboardExpand all lines: Sprint-2/2-mandatory-debug/1.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,18 @@
1
1
// Predict and explain first...
2
2
// =============> write your prediction here
3
-
// The function suppose to return the sum of the two variables but we will encounter an error probably a syntax Error
3
+
// The function suppose to return the sum of the two variables but we will encounter an error as the code after return is unreachable.
4
4
5
5
6
6
// function sum(a, b) {
7
7
// return;
8
8
// a + b;
9
9
// }
10
10
// console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
11
-
// As we return nothing by closing the line with a semicolon hence a + b is not returned where we tell the computer to exit and go back to global scope and the computer will not be able to read the lines after that
11
+
12
12
// =============> write your explanation here
13
13
14
+
// As we return nothing by closing the line with a semicolon hence a + b is not returned where we tell the computer to exit and go back to global scope and the computer will not be able to read the lines after that
0 commit comments