> ## 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 Equality

The `===` (strict equality) operator evaluates whether two operands are identical in both data type and value, strictly bypassing the implicit type coercion performed by the loose equality (`==`) operator.

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

Under the hood, `===` implements the ECMAScript Strict Equality Comparison algorithm. The evaluation follows a rigid set of rules based on the operand types:

## 1. Type Evaluation

If the operands are of different data types, the engine immediately returns `false` without attempting to convert them.

```javascript theme={"dark"}
1 === '1';        // false (Number vs String)
true === 1;       // false (Boolean vs Number)
null === undefined; // false (Null vs Undefined)
```

## 2. Primitive Value Comparison

If both operands are of the same primitive type, they are evaluated by their underlying values:

* **Strings:** Returns `true` if both strings have the exact same sequence of 16-bit unsigned integer values (code units).
* **Booleans:** Returns `true` if both are `true` or both are `false`.
* **Null & Undefined:** `null === null` is `true`, and `undefined === undefined` is `true`.
* **Symbols:** Returns `true` only if both operands reference the exact same Symbol instance.
* **BigInt:** Returns `true` if both have the same mathematical integer value.

## 3. Numeric Edge Cases

When both operands are of type `Number`, the operator applies specific IEEE 754 floating-point rules:

* `NaN` (Not-a-Number) is never equal to anything, including itself.
* Positive zero (`+0`) and negative zero (`-0`) are considered strictly equal.

```javascript theme={"dark"}
NaN === NaN; // false
+0 === -0;   // true
5 === 5;     // true
```

## 4. Reference Type Comparison (Objects, Arrays, Functions)

When evaluating reference types, `===` checks for **referential equality** (identity), not structural equality. It returns `true` if and only if both operands point to the exact same object instance in memory. Two distinct objects with identical properties and values will evaluate to `false`.

```javascript theme={"dark"}
const objA = { id: 1 };
const objB = { id: 1 };
const objC = objA;

objA === objB; // false (Distinct memory addresses)
objA === objC; // true  (Shared memory address)

[1, 2] === [1, 2]; // false (Distinct array instances)
```

<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>
