Operators
Abstract equality (==)
Applies type-dependent loose equality conversion, including null with undefined and numeric conversion of strings against numbers. Object operands may invoke primitive conversion. Prefer explicit normalization for domain comparisons.
Formal Syntax & Structure
javascript syntaxjavascript
left == rightParameters & Attributes
| Name | Type | Description |
|---|---|---|
| left | expression | Left operand. |
| right | expression | Right operand; short-circuiting may skip evaluation where applicable. |
Return Value
Boolean
Result of the operation.
Working Example
Example Snippetjavascript
console.log(null == undefined);