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 9ba2bec commit 9515acbCopy full SHA for 9515acb
Sprint-2/2-mandatory-debug/1.js
@@ -1,13 +1,16 @@
1
// Predict and explain first...
2
-// =============> write your prediction here
+// There will be an error because there is going to be nothing to define after return. =============> write your prediction here
3
4
-function sum(a, b) {
5
- return;
6
- a + b;
7
-}
8
9
-console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
10
11
// =============> write your explanation here
12
-// Finally, correct the code to fix the problem
13
-// =============> write your new code here
+
+//Finally, correct the code to fix the problem
+ function sum(a, b) {
+ return a+b;
+}
14
15
+console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
16
+//=============> write your new code here
0 commit comments