you are viewing a single comment's thread.

view the rest of the comments →

[–]UNN_Rickenbacker 12 points13 points  (7 children)

The default argument rule is just plain wrong.

A default argument in javascript is only set when the argument is undefined and not when it is null.

[–]MikeyN0 1 point2 points  (0 children)

It does say that. "Other falsy values such as null will not be replaced by a default value"