Javascript: Type and Value Comparison
A common problem when doing value comparison inside of Javascript is the automatic type conversion that happens for you, this means all the following statements resolve to “true”. 1 == 1; 1 == ‘1’; 1 == “1”; As a little bonus snippet in a post by Steve Wellens he provides an answer to the problem,…