On Sun, Oct 23, 2011 at 4:46 PM, guipn <gui.pinh...@gmail.com> wrote: > Passing undefined is something you don't have to do, for obvious > reasons.
It's not so much about explicitly passing it on. It can also happen to be the value of some variable, for whatever reason. var bar = giveMeAValue(); if (Math.random() > 0.5) f(bar); else f(); Yes, that's very very silly, but try to imagine a more complex program that works in the lines of that, where it would make sense somehow. In most cases it doesn't matter and it would be desirable to have an undefined be defaulted to something. But not always. - peter -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a non-Google archive, visit here: http://www.mail-archive.com/jsmentors@googlegroups.com/ To unsubscribe from this group, send email to jsmentors+unsubscr...@googlegroups.com