5 < 4 < 3
You’d be expecting to see
false, right? However, you’ll actually see
(5 < 4) < 3
Which in turn gives
false < 3
false into an integer
0 < 3
And zero is indeed less than 3, so we get
If you enjoyed this post, signup to the newsletter to be notified when there's new content, new courses and exclusive offers.
If you enjoyed this article please feel free to share it on Twitter.