Skip to content

Commit fee9c33

Browse files
committed
Implement sum function to correctly return the sum of two numbers and update console log output
1 parent 7fc8853 commit fee9c33

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • Sprint-3/2-mandatory-debug

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@
1717

1818
// Finally, correct the code to fix the problem
1919
// =============> write your new code here
20+
function sum(a, b){
21+
return (
22+
a + b
23+
);
24+
}
25+
console.log (`The sum of 10 and 32 is ${sum(10, 32)}`);

0 commit comments

Comments
 (0)