File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Sprint-2/2-mandatory-debug Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 11// Predict and explain first...
22
3- // =============> write your prediction here
3+ // the function hasn't got a return so the log will be undefined
44
5- function multiply ( a , b ) {
6- console . log ( a * b ) ;
7- }
5+ // function multiply(a, b) {
6+ // console.log(a * b);
7+ // }
88
9- console . log ( `The result of multiplying 10 and 32 is ${ multiply ( 10 , 32 ) } ` ) ;
9+ // console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
1010
11- // =============> write your explanation here
11+ // the function hasn't got a return so the log will be undefined
1212
1313// Finally, correct the code to fix the problem
14- // =============> write your new code here
14+ function multiply ( a , b ) {
15+ return a * b ;
16+ }
17+
18+ console . log ( `The result of multiplying 10 and 32 is ${ multiply ( 10 , 32 ) } ` ) ;
You can’t perform that action at this time.
0 commit comments