Aside from what Corion said, I'll point out that one wouldn't use the expression:
10 || 34
as it is written there. That will always evaluate to 10. However, you'll often see in code things like any of the following when you're not sure the value on the left will have a nonzero value.