if else comparisons in js code example
Example 1: js logical operators
Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
Example 2: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
5 =='5' // true: ignores type
5 === '5' // false: includes type