We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e51dec commit a72a8d2Copy full SHA for a72a8d2
1 file changed
Sprint-2/2-mandatory-debug/1.js
@@ -1,13 +1,18 @@
1
// Predict and explain first...
2
// =============> write your prediction here
3
+// the function will sum the given parameters
4
5
function sum(a, b) {
- return;
6
- a + b;
+ return a + b;
7
}
8
9
console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
10
11
// =============> write your explanation here
12
+ // unable to return nothing - the statement is not given - has to be in the same line with the return
13
// Finally, correct the code to fix the problem
14
+
15
// =============> write your new code here
16
+ // function sum(a, b) {
17
+ //return a + b;
18
+ //}
0 commit comments