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.

 

Last updated October 4, 2017

Was this article helpful?
14 out of 18 found this helpful
Have more questions? Submit a request

Comments