189
rated 0 times
[
193]
[
4]
/ answers: 1 / hits: 33111
/ 15 Years ago, fri, december 4, 2009, 12:00:00
What happens when I call a Javascript function which takes parameters, without supplying those parameters?
More From » parameters
What happens when I call a Javascript function which takes parameters, without supplying those parameters?
Set to undefined. You don't get an exception. It can be a convenient method to make your function more versatile in certain situations. Undefined evaluates to false, so you can check whether or not a value was passed in.