Relational & Strict Equality in JavaScript

🟢 Beginner

📖 Definition

JavaScript provides loose equality (==) and strict equality (===) which checks both value and data type.

âš¡ Code Example

console.log(5 == "5");  // true (type coercion)
console.log(5 === "5"); // false (strict type check)

🧭 Navigation

← 01. Arithmetic & Exponentiation | Operators Hub | 03. Logical & Nullish Coalescing →