condition with javascript if (x == on) code example
Example 1: or statment javscript
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
Example 2: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
5 =='5' // true: ignores type
5 === '5' // false: includes type