© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Mark
Useful warning to prevent this pitfall!
Some languages like Python understand this syntax (so that 1 < 2 < 3 is the same as 1 < 2 and 2 < 3). Many others give an error. I think Javascript's behaviour is an unfortunate mistake.
1 < 2 < 3
1 < 2 and 2 < 3