o

Javascript Boolean Operators

Boolean operators:

  • < less than
  • > greater than
  • == test equality
  • != not equal to
  • <= less than or equal to
  • >= greater than or equal to
  • || logical OR
  • && logical AND

 

Example Usage:

var num = 10;
if(num > 8 && num != 9) {
    document.write('that is a good number');
}