not equal to number js code example
Example 1: not equal to sign in js
let a=12
if(a!=5){
console.log(true)
}
since a is not equal to 5, it will print true
Example 2: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
let a=12
if(a!=5){
console.log(true)
}
since a is not equal to 5, it will print true
5 =='5' // true: ignores type
5 === '5' // false: includes type