Why is 5 > 4 > 3 != (5 > 4 && 4 > 3)true in javascript?
5 > 4 > 3 != (5 > 4 && 4 > 3)
So annoying!
5 > 4 > 3evaluated as (5 > 4) > 3, and then true > 3which is equal false. Take a look
5 > 4 > 3
(5 > 4) > 3
true > 3
false
JavaScript, in the great tradition of most languages that come down with C, does not support a chain of relational operators.