Skip to content

Commit 716d278

Browse files
committed
done 0.js
1 parent 571227a commit 716d278

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Sprint-2/debug/0.js

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

3+
/*
4+
the function won't return anything because we did not have any return so this will be undefine
5+
it will print what is in the console but no in the second console because we are callin the function which will return undefine
6+
7+
8+
9+
function multiply(a, b) {
10+
console.log(a * b);
11+
}
12+
*/
13+
// ==================== this will return the arguments sent in the second console ====================
14+
315
function multiply(a, b) {
4-
console.log(a * b);
16+
return(a * b);
517
}
618

19+
720
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);

0 commit comments

Comments
 (0)