Skip to main content


javascript – Can (a== 1 && a ==2 && a==3) ever evaluate to true? – Stack Overflow
javascript - Can (a== 1 && a ==2 && a==3) ever evaluate to true? - Stack Overflow

Yes, it can. IMHO it is one of the several undesirable consequences of loosely typed languages. In fact, according to an almost anonymous user:

If you take advantage of how ==
https://monodes.com/predaelli/2023/11/21/javascript-can-a-1-a-2-a3-ever-evaluate-to-true-stack-overflow/
#Documentations #Javascript #Tricks

This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.