javascript if and operator code example
Example 1: js logical operators
Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
Example 2: or statment javscript
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")