You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Martin response - the function call will return undefined as there is no return value in the multiply function
4
5
5
6
functionmultiply(a,b){
6
7
console.log(a*b);
7
8
}
8
9
9
-
console.log(`The result of multiplying 10 and 32 is ${multiply(10,32)}`);
10
+
// console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
10
11
11
12
// =============> write your explanation here
13
+
// Martin response - the parameters a and b are multiplied and logged inside the function, but there is no return value so the return value from the function is undefined
12
14
13
15
// Finally, correct the code to fix the problem
14
16
// =============> write your new code here
17
+
18
+
functionmultiply(a,b){
19
+
returna*b;
20
+
}
21
+
22
+
console.log(`The result of multiplying 10 and 32 is ${multiply(10,32)}`);
0 commit comments