Skip to content

Commit 8e51dec

Browse files
committed
explaining the function
1 parent d0520a0 commit 8e51dec

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-debug

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// Predict and explain first...
2+
//function is there to multiply the given arguments in the console log line 10
3+
24

35
// =============> write your prediction here
46

@@ -9,6 +11,11 @@ function multiply(a, b) {
911
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
1012

1113
// =============> write your explanation here
12-
14+
// we would have an error message as we would need to return the statement
1315
// Finally, correct the code to fix the problem
1416
// =============> write your new code here
17+
//function multiply(a, b) {
18+
//return(a * b);
19+
//}
20+
21+
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);

0 commit comments

Comments
 (0)