logical and operator in javascript code example
Example 1: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
Example 2: and operator in javascript
//& (bitwise AND) operator
console.log(5 & 13); //outout: 5
/*
5 = 0101 (base 2)
13 = 1101 (base 2)
//AND every bit together from both numbers
+----+
|0101|
|1101|
+----+
|0101|
+----+
0101 = 5 (base 10)
*/