There was an error while loading. Please reload this page.
1 parent 6f4e46f commit 9aadee0Copy full SHA for 9aadee0
1 file changed
Sprint-3/2-mandatory-debug/0.js
@@ -2,13 +2,23 @@
2
3
// =============> write your prediction here
4
5
-function multiply(a, b) {
+// 'The result of multiplying 10 and 32 is 10 * 32' is printed.
6
+
7
+/*function multiply(a, b) {
8
console.log(a * b);
9
}
10
-console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
11
+console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);*/
12
13
// =============> write your explanation here
14
15
+// the function prints a * b. When presented with multiply(10, 32) it prints 10 * 32.
16
17
// Finally, correct the code to fix the problem
18
// =============> write your new code here
19
20
+function multiply(a, b) {
21
+ return (a * b);
22
+}
23
24
+console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
0 commit comments