Operators

Abstract inequality (!=)

Try the free JavaScript compiler

Negates loose equality after the same conversion rules as ==. It is not the same as strict inequality; different input types can compare equal.

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(0 != "0");
JavaScript Reference