First, let's look at the short circuit. Say you have a line like
var A = B || C;
If Bis truthy , then it Awill be set to B. If this is not so, then it Awill be equal C.
Repeatedly applying this to your situation, if x2 < x1true, the result of this expression will be true. Otherwise, the result will be -1.
, Javascript. , , . true 1.
" x2 >= x1, ".