Skip to content

Commit 90d82d7

Browse files
debug 0 done
1 parent 00e61a2 commit 90d82d7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • Sprint-3/2-mandatory-debug

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Predict and explain first...
22
// =============> write your prediction here
3+
//the return atement was closed without executing anything
34

45
function sum(a, b) {
56
return;
@@ -11,3 +12,10 @@ console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
1112
// =============> write your explanation here
1213
// Finally, correct the code to fix the problem
1314
// =============> write your new code here
15+
16+
function sum(a, b) {
17+
return a + b;
18+
19+
}
20+
21+
console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);

0 commit comments

Comments
 (0)