Revature Interview Question

What is the difference between == and ===?

Interview Answer

Anonymous

Dec 10, 2020

== in JavaScript is used for comparing two variables, but it ignores the datatype of variable. === is used for comparing two variables, but this operator also checks datatype and compares two values

5