Javascript operators
var a = 5, b = 10;
Greater than if(a > b){...}
Less than if(a < b){...}
Greater than or equal to if(a >= b){...}
Less than or equal to if(a <= b){...}
Equal to if(a == b){...}
Not equal if(a != b){...}
var a = 5, b = "5";
Equal to if(a == b){...}
Equal value and equal type if(a === b){...}
Not equal value OR not equal type if(a !== b){...}
var a = 5, b = 5, c = 5, d = 10;
AND if(a == b && c == d) {...}
OR if(a == b || c == d) {...}
NOT if(!(a > d)) {...}
var a = 14, b = 5, c = "Hello", d = "World!";
Addition a + b
Subtraction a - b
Multiplication a * b
Division a / b
Modulus a % b
Increment a++
Decrement a--
*** Warning! ***
Concatenation b + c
c + d
c + " " + d
Syntax
variablename = (condition) ? true:false;
var age = 29, type;
type = (age < 18) ? "Minor" : "Adult";
0
1