or javascrip;t code example
Example 1: or statment javscript
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
Example 2: === javascript
// === means equal value and equal type
var x = 5
// true
x === 5
// false
x === "5"
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
// === means equal value and equal type
var x = 5
// true
x === 5
// false
x === "5"