JavaScript Loose Equals
JavaScript == Comparison Tool
💡 How it works:
JavaScript's loose equality (
==
) performs type coercion, leading to surprising results. Enter any JavaScript expression below to see what other values are loosely equal to it!
const x =
false
Give examples
Press Ctrl+Enter to run quickly
The expression is evaluated as:
undefined
The following statements are also
true
: