Making Decisions with the If…Else Statement
The equality operators are == and ===. The difference between the two is that the double equals will convert values between different types. For example, if you compare 3 with "3", the == operator will say that they’re equal, while the triple equals operator will say that they aren’t.
The triple equals operator is called the strict equality operator. We recommend that you always use the strict equality operator in order to avoid bugs.
The not equal operators are formed by putting an exclamation point (!) before the equality operators. They tell you whether two values are different. The strict not equal operator (!==) compares values without converting their type and the not equal operator (!=) converts between data types before comparing. We recommend that you always use the strict not equal operator.
Greater than and less than
The greater than (>) and less then (<) operators compare numeric values. ...