and statement javascript code example
Example 1: js logical operators
Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
Example 2: javascript if or
let A = 1;
let B = 0;
if (A == 1 || B == 1){
// some code here
}
Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
let A = 1;
let B = 0;
if (A == 1 || B == 1){
// some code here
}