---
meta:
  title: Comparison not equal
  description: It will check that one value does not equal the other.
---

Inequality operator is like the [comparison](/comparison)
operator, except it's the opposite. It will check that one value does
not equal the other.

```javascript
console.log("1" != 1); // false

console.log(1 != 2); // true
```
