Back to Developer Roadmap

Js Equality Operators

src/data/question-groups/full-stack/content/js-equality-operators.md

4.0403 B
Original Source
  • ==: Compares values with each other directly, performing type conversion if required first (example: '5' == 5true).
  • ===: This operator strictly compares values and types with each other. There is no type conversion performed with this operator. For example, if you try to compare a string and a number, the result will always be false, no matter what: '5' === 5false.