Question: what is the difference between == and === in javascript?
Answer: == 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. ... It returns true only if both values and data types are the same for the two variables.