Skip to content

Commit 031eaf3

Browse files
committed
predit error and expplain outcome
1 parent 71935b5 commit 031eaf3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • Sprint-3/2-mandatory-debug

‎Sprint-3/2-mandatory-debug/0.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// Predict and explain first...
22

3-
// =============> write your prediction here
3+
// =============> there is no return,to return the value to the function call
44

55
function multiply(a, b) {
66
console.log(a * b);
77
}
88

99
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
1010

11-
// =============> write your explanation here
11+
// =============> the error is it is not printing out the function call in line 9.
12+
// and returning is as undefined
1213

1314
// Finally, correct the code to fix the problem
14-
// =============> write your new code here
15+
// =============>

0 commit comments

Comments
 (0)