Junior JavaScript

What is the difference between === and ==?

  • == : Equality operator (converts type before comparing)
  • === : Strict equality (no type conversion, checks type + value)

Example:

5 == '5'; // true

5 === '5'; // false

🔹 2. Functions and Scope – Q&A

More from JavaScript Tutorial

All questions for this course