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 9b67723 commit 1e55d56Copy full SHA for 1e55d56
1 file changed
Sprint-2/2-mandatory-debug/1.js
@@ -3,11 +3,10 @@
3
// I predict it will show a undefined error
4
5
function sum(a, b) {
6
- return;
7
- a + b;
+ return a + b;
8
}
9
10
-console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
+console.log(`The sum of 10 and 32 is ${sum(a + b)}`);
11
12
// =============> write your explanation here
13
// The problem was the semicolon after return, which made the function stop before adding the numbers
0 commit comments