Skip to content

Commit 00e61a2

Browse files
fixed mandatory debug 0
1 parent 6700cbc commit 00e61a2

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • Sprint-3/2-mandatory-debug

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
// Predict and explain first...
2-
2+
//used log instead of return in fuction
3+
//
34
// =============> write your prediction here
45

5-
function multiply(a, b) {
6+
/*nction multiply(a, b) {
67
console.log(a * b);
78
}
89
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)}`);*/
1011

1112
// =============> write your explanation here
1213

1314
// Finally, correct the code to fix the problem
1415
// =============> write your new code here
16+
function multiply(a, b) {
17+
return (a * b);
18+
}
19+
20+
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);

0 commit comments

Comments
 (0)