if isnot js code example
Example: javascript if not
var isDay = false;
if (!isDay) { //Will execute if isDay is false
console.log("It's night");
}
var isDay = false;
if (!isDay) { //Will execute if isDay is false
console.log("It's night");
}