triple equals javascript code example
Example 1: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
Example 2: strict equality operator
/**
* Strict equality operator (===) checks if its two operands are identical.
*
* The 'if' statement below will yield to false.
*
* This is because the strict equality operator checks if both the data type AND the value contained are
* the same.
*/
let x = 8
let y = "8"
if (x === y)