Skip to content

Commit eaad7ed

Browse files
committed
fixed the return statement.
1 parent 6d07e0b commit eaad7ed

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// =============> write your prediction here: The return function is not defined, so the function will not return the sum of a and b.
33

44
function sum(a, b) {
5-
return;
6-
a + b;
5+
return a + b;
6+
77
}
88

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

0 commit comments

Comments
 (0)