compare numbers javascript code example
Example 1: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
Example 2: === javascript
// === means equal value and equal type
var x = 5
// true
x === 5
// false
x === "5"
5 =='5' // true: ignores type
5 === '5' // false: includes type
// === means equal value and equal type
var x = 5
// true
x === 5
// false
x === "5"