if not javas code example
Example 1: not operator js
let a = true;
let b = !a;
console.log(b); //output: false
Example 2: and javascript
let a = 1;
let b = -1;
if (a > 0 & b > 0){
console.log("and");
} else if (a > 0 || b > 0){
console.log("or");
}