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
// =============> Error because console.log is within the multiply function does not return a value
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
+
// =============> The console.log inside the function multiply is read first & prints the result of multiplying 10 and 32 - 320, to the console.
12
+
// But the aim of the function which was tryin to return it in the template literals is left as undefined because the multiply function does not return a value
0 commit comments