Skip to content

Commit 651f59e

Browse files
exercise 0 solution mandatory debug
1 parent cd25015 commit 651f59e

File tree

1 file changed

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

1 file changed

+7
-1
lines changed

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

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

3-
// =============> write your prediction here
3+
// =============> instead of console log should be return
44

55
function multiply(a, b) {
66
console.log(a * b);
@@ -12,3 +12,9 @@ console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
1212

1313
// Finally, correct the code to fix the problem
1414
// =============> write your new code here
15+
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)