为什么1 <2 <3评估正确,而3> 2> 1评估不正确? [重复]

 收藏
: 1 < 2 < 3
true
: 3 > 2 > 1
false
...
...
: 3 > 2 && 2 > 1
true

也许我真的在考虑问题,但是我认为它们都会评估为真。为什么不呢?

回复
  • Lee 回复

    Because 3 > 2 evaluates to true then true > 1 evaluates to 1 > 1 which is false

  • 懒喵喵~ 回复

    Because 1 < 2 evaluates as true which is less than 3,
    but 3 > 2 which also evaluates as true is NOT greater than 1