not equal operator js code example
Example 1: javascript does not equal
!= not equal
!== not equal value OR type
Example 2: javascript if not
var isDay = false;
if (!isDay) { //Will execute if isDay is false
console.log("It's night");
}
Example 3: equal to or more than javascript
//Equal to or more than
a >= b
//Equal to or less than
a <= b
Example 4: not equal to in js
let a=12
if(a!=5){
console.log(true)
}
since a is not equal to 5, it will print true