+1 vote
in JavaScript by
Why are optional parameters added?

To assure that value is always assigned to the variable

To add more than three parameters  XX

To avoid assigning value for parameterised variable  --

To avoid confusion

1 Answer

0 votes
by
To avoid assigning value for parameterised variable
...