Generally it's better to use the !== operator so JS doesn't try to convert the arguments in the event of a mismatch. http://stackoverflow.com/questions/359494/javascript-vs-does-it-matter-which-equal-operator-i-use