Depends on the language. In something with strict typing it would print false, because it's comparing a number (likely interpreted as an integer) to a string or a char (again varies with language).
There are some languages that don't do strict typing, like JavaScript and Python, but I honestly don't remember if this is one of the weird things that would return true or not.
In Js, == is a week comparison. If both values are not the same type, it tries to convert one to the other, and then check. === Is strong comparison, where if they are difrent types, the expression returns false
0
u/[deleted] Aug 01 '22
[deleted]