> ## Documentation Index
> Fetch the complete documentation index at: https://docs.syntblaze.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript Strict Inequality

The `!==` (strict inequality) operator evaluates whether two operands are not equal, returning a boolean result. Unlike the loose inequality operator (`!=`), `!==` does not perform implicit type coercion before comparison; it strictly evaluates both the data type and the value of the operands. It is the exact negation of the strict equality operator (`===`).

```javascript theme={"dark"}
operand1 !== operand2
```

## Evaluation Mechanics

When the JavaScript engine evaluates `operand1 !== operand2`, it follows a strict set of algorithmic steps:

1. **Type Comparison:** If the underlying `Type(operand1)` is different from `Type(operand2)`, the operator immediately returns `true`.
2. **Value Comparison (Same Type):** If both operands share the same type, the engine evaluates their values:
   * **Numbers:**
     * If either operand is `NaN` (Not-a-Number), it returns `true`. By definition in IEEE 754, `NaN` is not equal to anything, including itself.
     * If both operands have the same numeric value, it returns `false`.
     * If one operand is `+0` and the other is `-0`, it returns `false` (they are considered strictly equal).
   * **Strings:** Returns `false` if both strings have the exact same sequence of 16-bit code units; otherwise, it returns `true`.
   * **Booleans:** Returns `false` if both are `true` or both are `false`; otherwise, it returns `true`.
   * **BigInts:** Returns `false` if both have the same mathematical integer value; otherwise, it returns `true`.
   * **Symbols:** Returns `false` if both operands are the exact same unique Symbol primitive value; otherwise, it returns `true`.
   * **Objects (including Arrays and Functions):** Returns `false` if both operands hold a reference to the exact same object in memory. If they reference different objects—even if those objects contain identical properties or elements—it returns `true`.
   * **Null / Undefined:** `null !== null` and `undefined !== undefined` both return `false`.

## Syntax Visualization

```javascript theme={"dark"}
// 1. Type Difference (No Coercion)
1 !== "1"                   // true (Number vs String)
0 !== false                 // true (Number vs Boolean)
null !== undefined          // true (Null vs Undefined)

// 2. Value Difference (Same Type)
42 !== 99                   // true
"hello" !== "hello"         // false

// 3. The NaN Exception
NaN !== NaN                 // true (NaN is never equal to NaN)

// 4. Object References
const obj1 = { a: 1 };
const obj2 = { a: 1 };
const obj3 = obj1;

obj1 !== obj2               // true (Different memory references)
obj1 !== obj3               // false (Same memory reference)

// 5. Arrays (Subtype of Object)
[1, 2] !== [1, 2]           // true (Different memory references)

// 6. Symbols
Symbol("x") !== Symbol("x") // true (Different unique primitives)
const sym = Symbol("y");
sym !== sym                 // false (Same unique primitive)
```

<div
  style={{ 
display: "flex", 
justifyContent: "space-between", 
alignItems: "center", 
maxWidth: "754px", 
padding: "1rem 0",
marginBottom: "24px"
}}
>
  <span style={{ fontWeight: "bold", fontSize: "1.25rem", color: "var(--tw-prose-headings)", fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" }}>Tired of Poor JavaScript Skills? Fix That With Deep Grasping!</span>

  <a
    href="https://syntblaze.com"
    target="_blank"
    style={{ 
  marginLeft: "24px",
  textDecoration: "none", 
  backgroundColor: "#007AFF",
  color: "#ffffff", 
  padding: "6px 16px", 
  borderRadius: "16px",
  fontSize: "0.9rem",
  fontWeight: "600",
  textAlign: "center",
  transition: "background-color 0.2s ease"
}}
  >
    Learn More
  </a>
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/skill-tracking.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=b9b0305c93bb501c9e767b5c76c88835" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/skill-tracking.png" />

  <img src="https://mintcdn.com/syntblazellc/23tyuOzaWS88qFlc/images/nuggets.png?fit=max&auto=format&n=23tyuOzaWS88qFlc&q=85&s=c86c80197299762989e9b882419b2109" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/nuggets.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/bite-sized-exercises.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=a65f9a38c37ff28ab73ed783c53c60e3" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/bite-sized-exercises.png" />
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap", marginTop: "12px" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/mastery-chain.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=748a1763454713e679260fbb95f154a2" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/mastery-chain.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-previews.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=242f61448ff5dd6deaaab2dccc13b507" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-previews.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-explanations.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=cf0fc1c31f9cd0fc26716781be05fbc9" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-explanations.png" />
</div>
