Follow

What's the difference between === and == ?

 

The difference between these symbols is the following

  • === checks type and value
  • == just checks value

For example: 5 === "5" will evaluate to false while  5 == "5" will evaluate to true.

 

 

Was this article helpful?
19 out of 26 found this helpful
Have more questions? Submit a request

Comments