If you know that the types are the same, then there is no difference in algorithm between == and === .
However, when I see == , I assume that I am using it for my type of coercion, which forces me to stop and analyze the code.
When I see === , I know that there is no coercion, so I do not need to think about it.
In other words, I only use == if I intend to use some kind of coercion type.
user1106925
source share