Most people write comparison checks just like they would in any other language. E.g:
if (valueOne == valueTwo)
5 == "5"
5 === "5"
5 !== "5"
By using three equal signs or one exclamation sign and two equal signs, it also makes sure to compare if the values are of the same type or not, i.e. both being numbers, strings etc. This is also a practice recommended when working with JSLInt.