js not equal code example
Example 1: js greater than or equal to
>=
<=
>
<
==
===
!=
!==
Example 2: javascript and operator
const x = 7;
const y = 4;
(x == 7 && y == 5);
(x == 3 && y == 4);
(x == 7 && y == 4);
if (condition == value && condition == otherValue) {
return something;
}
Example 3: or operator in javascript
var a = true;
var b = false;
if(a || b) {
}
Example 4: javascript does not equal
!= not equal
!== not equal value OR type
Example 5: javascript if not
var isDay = false;
if (!isDay) {
console.log("It's night");
}
Example 6: not equal to sign in js
let a=12
if(a!=5){
console.log(true)
}
since a is not equal to 5, it will print true