how can we use if not statement in javascript 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");
}