Greater Than vs Not Equal

Edit on GitHub

Greater Than vs Not Equal

Setup

Tests

  • Greater Than

    var a = 500, b = 0, c = -500;
    
    var result1 = a > 0;
    var result2 = b > 0;
    var result3 = c > 0;
  • Not Equal

    var a = 500, b = 0, c = -500;
    
    var result1 = a !== 0;
    var result2 = b !== 0;
    var result3 = c !== 0;