InterviewSolution
Saved Bookmarks
| 1. |
What do you understand about default parameters? |
|
Answer» If no value or undefined is passed, we can use the default PARAMETERS to set default VALUES for NAMED parameters. VAR display = (x , y = 2) => { console.log(x + " " + y); } display(1);Output: 1 2 |
|