Skip to content

Commit 9ba2bec

Browse files
Implement changes.
1 parent 80dc521 commit 9ba2bec

File tree

1 file changed

+12
-7
lines changed
  • Sprint-2/2-mandatory-debug

1 file changed

+12
-7
lines changed

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

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

3-
// =============> write your prediction here
3+
// I am predicting there will be an error. =============> write your prediction here
4+
5+
46

5-
function multiply(a, b) {
6-
console.log(a * b);
7-
}
87

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

11-
// =============> write your explanation here
9+
// Although it is going to print the value to be 320, it won't return back the value as 320.=============> write your explanation here
1210

1311
// Finally, correct the code to fix the problem
14-
// =============> write your new code here
12+
13+
14+
function multiply(a, b) {
15+
return (a * b);
16+
}
17+
18+
console.log(`${multiply(10, 32)}`)
19+
//=============> write your new code here

0 commit comments

Comments
 (0)