Equality Operators
Explore JavaScript equality operators to understand how strict and loose equality checks function. Learn the rules for type conversion during comparisons and how objects, null, and undefined values are treated in equality tests.
We'll cover the following...
We'll cover the following...
Equality
Testing equality is an important operation in every programming language, just like in JavaScript.
Due to the loosely-typed nature of JavaScript, it defines two kinds of equality:
- identically equal (
===), and - equal (
==)
Non-Equality
Implicitly, there are two kinds of non-equality: ...