document.write(14 + 2)
The following sections teach you about the various operators.
|%||Modulus (division remainder)||j%6|
Comparison operators are generally used inside a construct such as an if statement where you need to compare two items. For example, you may wish to know whether a variable you have been incrementing has reached a specific value, or whether another variable is less than a set value, and so on.
|==||Is equal to||j == 42|
|!=||Is not equal to||j != 17|
|>||Is greater than||j > 0|
|<||Is less than||j < 100|
|>=||Is greater than or equal to||j >= 23|
|<=||Is less than or equal to||j <= 13|
|===||Is equal to (and of the same type)||j === 56|
|!==||Is not equal to (and of the same type)||j !== ‘1’|
|&&||And||j == 1 && k == 2|
|||||Or||j < 100 || j > 0|
|!||Not||! (j == k)|