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 6a28411 commit ca2b713Copy full SHA for ca2b713
Sprint-2/2-mandatory-debug/0.js
@@ -1,6 +1,7 @@
1
// Predict and explain first...
2
3
// =============> write your prediction here
4
+// I predict there will be error because instead of console.log we should have used return.
5
6
function multiply(a, b) {
7
console.log(a * b);
@@ -9,6 +10,12 @@ function multiply(a, b) {
9
10
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
11
12
// =============> write your explanation here
13
+// The same as I predicted.
14
15
// Finally, correct the code to fix the problem
16
// =============> write your new code here
17
+function multiply(a, b) {
18
+ return(a * b);
19
+}
20
+
21
+console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
0 commit comments