且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么1< 2 < 3正确评估,但3> 2> 1不?

更新时间:2022-06-21 04:53:27

因为1 < 2的计算结果为true,小于3
但是3 > 2(也将其评估为true)不大于1

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