What does the === operator check in JavaScript?

JavaScript Associate Easy

JavaScript Associate — Easy

What does the === operator check in JavaScript?

Key points

  • The === operator performs a strict comparison
  • It verifies both the value and data type
  • Loose equality checks, like ==, do not consider data type
  • Reference checks, like ===, are not the same as comparing object references

Ready to go further?

Related questions