What is the difference between == and === operators in JavaScript?

  • Checks for equality in value and type
  • Checks for inequality in value and type
  • Checks only for equality in type
  • Checks only for equality in value
The == operator in JavaScript checks for equality in value, while the === operator checks for equality in both value and type. It is a strict equality check.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *