wiki/content/20201112105310-javascript_comparison_operators.md

408 B

id title
0617f7af-2e55-40b5-b83a-6157703a9cd6 JavaScript Comparison Operators

Operators

console.log(4 >= 3)
console.log(4 <= 3)
console.log(4 == 3)
console.log(4 != 3)
console.log(0 == false)
console.log(0 === false)
console.log(0 != false)
console.log(0 !== false)

The only value in JavaScript that is not equal to itself is NaN

console.log(NaN == NaN)