Charlotte Pearce
Oct 25 · 1 min read

I’ve heard that the difference between == and === is sometimes used in interviews…I had a look and took this snippet from the article below…

== is used for comparison between two variables irrespective of the data type of variable.

=== is used for comparison between two variables but this will check strict type, which means it will check datatype and compare two values.

https://www.c-sharpcorner.com/article/difference-between-and-in-javascript2/#targetText=The%20single%20%3D%20is%20used%20for,it%20returns%20true%20or%20false.