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 01dccfc commit 4bf3376Copy full SHA for 4bf3376
Sprint-2/2-mandatory-debug/1.js
@@ -1,6 +1,8 @@
1
// Predict and explain first...
2
// =============> write your prediction here
3
4
+// It will not say `undefined` but will not add parameter `a` and `b`
5
+
6
function sum(a, b) {
7
return;
8
a + b;
@@ -9,5 +11,12 @@ function sum(a, b) {
9
11
console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
10
12
13
// =============> write your explanation here
14
15
+// The console prints: The sum of 10 and 32 is undefined
16
17
// Finally, correct the code to fix the problem
18
// =============> write your new code here
19
20
+function add(a, b) {
21
+ return a + b;
22
+}
0 commit comments