Operators

Strict equality (===)

Try the free JavaScript compiler

Tests equality without cross-type coercion. NaN does not equal itself, signed zeros are equal, and two objects match only by identity.

Formal Syntax & Structure

javascript syntaxjavascript
left === right

Parameters & Attributes

NameTypeDescription
leftexpressionLeft operand.
rightexpressionRight operand; short-circuiting may skip evaluation where applicable.

Return Value

Boolean

Result of the operation.

Working Example

Example Snippetjavascript
console.log(5 === "5");
JavaScript Reference