Commit 5555516
authored
Fixing function output and also fn argument typo
Found the following two issues in Q13 of functions-concepts.
- argument name was num but sum used num1 + num2. In `strict mode` num1 will not be found ( leading to reference error ) and in non strict mode it will be undefined
- The string argument which is being passed to console.log is being ignored erroneously. Hence moved the string param to end with its default value and modified the output as well.1 parent b7c66d1 commit 5555516
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
0 commit comments