if not eq javascript code example
Example 1: javascript if not
var isDay = false;
if (!isDay) { //Will execute if isDay is false
console.log("It's night");
}
Example 2: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
var isDay = false;
if (!isDay) { //Will execute if isDay is false
console.log("It's night");
}
5 =='5' // true: ignores type
5 === '5' // false: includes type