If
var grade = 95;

if (grade >= 90)
	console.log("A");
else if (grade >= 80)
	console.log("B");
else if (grade >= 70)
	console.log("C");
else
	console.log("Work harder ...");
		
Operators
  • &&, and
  • ||, or
  • !, not
  • var a = 10;
    
    if (a < 20 && a%2 == 0)
    	console.log(true)
    		
    Conditional (Ternary) Operator
    var age = 20;
    var voteable = (age < 18) ? "Too young":"Old enough";
    
    console.log(voteable);