if not equal js 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: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
Example 5: javascript not equal
0 !== "0"
0 !== 0