comparison-operators

JavaScript Learning online:comparison operators

2014-03-12

List of comparison operators:

  • > Greater than
  • < Less than
  • <= Less than or equal to
  • >= Greater than or equal to
  • === Equal to
  • !== Not equal to
  • Example:
  1. console.log(15>4);
    True
  2. console.log(“Xiao Hui”.length<122);
    True
  3. console.log(“Goody Donaldson”.length>8);
    True
  4. console.log(8*2===16);
    True
  5. console.log()
    false