We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 571227a commit 716d278Copy full SHA for 716d278
Sprint-2/debug/0.js
@@ -1,7 +1,20 @@
1
// Predict and explain first...
2
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
15
function multiply(a, b) {
- console.log(a * b);
16
+ return(a * b);
17
}
18
19
20
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
0 commit comments