Hi Pete, Thanks for taking the time to explain this. I believe your first example is incorrect though. It should be outputting the variable d and not c.
var a = false, b = "yay", c = "foo", d; d = a || b || c; console.log(*d*); // outputs "yay" Cheers, Matt -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
