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
// =============> write your prediction here: the value of a and b is not defined in the function and the return statement is missing.//
4
4
5
5
functionmultiply(a,b){
6
6
console.log(a*b);
7
7
}
8
8
9
9
console.log(`The result of multiplying 10 and 32 is ${multiply(10,32)}`);
10
10
11
-
// =============> write your explanation here
11
+
// =============> write your explanation here: The code is running but it has technical issue. the multiply function logs the result but does not return it.We need to use return function to use the result inside the string.//
12
12
13
13
// Finally, correct the code to fix the problem
14
14
// =============> write your new code here
15
+
//function multiply(a, b) {
16
+
// return a * b;
17
+
//}
18
+
// console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
0 commit comments