Skip to content

Commit 9515acb

Browse files
Effect the changes to 1.js .
1 parent 9ba2bec commit 9515acb

File tree

1 file changed

+11
-8
lines changed
  • Sprint-2/2-mandatory-debug

1 file changed

+11
-8
lines changed

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
// Predict and explain first...
2-
// =============> write your prediction here
2+
// There will be an error because there is going to be nothing to define after return. =============> write your prediction here
33

4-
function sum(a, b) {
5-
return;
6-
a + b;
7-
}
84

9-
console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
105

116
// =============> write your explanation here
12-
// Finally, correct the code to fix the problem
13-
// =============> write your new code here
7+
8+
9+
//Finally, correct the code to fix the problem
10+
function sum(a, b) {
11+
return a+b;
12+
13+
}
14+
15+
console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
16+
//=============> write your new code here

0 commit comments

Comments
 (0)