javascript if not equal code example

Example 1: js logical operators

Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not

Example 2: javascript does not equal

!= not equal 
!== not equal value OR type

Example 3: javascript if not

var isDay = false;
if (!isDay) { //Will execute if isDay is false
  console.log("It's night");
}

Example 4: equal to or more than javascript

//Equal to or more than
a >= b
//Equal to or less than
a <= b

Example 5: javascript not equal

0 !== "0"
0 !== 0

Example 6: === javascript

// ===	means equal value and equal type
var x = 5

// true
x === 5

// false
x === "5"