Wednesday, January 18, 2012 Sunday, February 6, 2011 Friday, February 4, 2011
Though it may not be clear from the example, the || operator returns the value of the first truthy operand, or, in cases where neither operand is truthy, it’ll return the last of both operands. The && operator returns the value of the first false operand, or the value of the last operand if both operands are truthy. jQuery Fundamentals