JavaScript takes an interesting view of logic, the way that it is implemented and what sorts of use you can put it to. Instead of just thinking about And and Or as logic tables you can think of them ...
There is yet another small and subtle point. Notice that if the first value is truthy then it's value is returned and the value of the second term is irrelevant. JavaScript takes notice of this fact ...