Skip to content

Commit 77b2288

Browse files
committed
added function prediction and explanation
1 parent f818c7f commit 77b2288

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sprint-3/2-mandatory-debug

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

Lines changed: 1 addition & 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+
// here we are declaring a function called multiply which takes in two arguments and multiplies them but because the function doesn't return the value when we call the function it hasnt been stored anywhere for it to be called upon so i think it will return undefined in the template literal. I also think because there are two console logs one will print the value 320 and the other will print the template literal but as multiply hasn't been stored anywhere it will print undefined ?
44

55
function multiply(a, b) {
66
console.log(a * b);

0 commit comments

Comments
 (0)