How does (A == B == C) comparison work in JavaScript?
First, we need to understand that a == comparison between a number and a boolean value will result in internal type conversion of Boolean value to a number (true becomes 1 and false becomes 0) The expression you have shown is evaluated from left to right. So, first A == B is evaluated and the … Read more