Travelers Interview Question

What is the difference between loose equality (==) vs. strict equality (===) comparisons.

Interview Answer

Anonymous

Oct 18, 2020

Two equal signs compare the values (e.g.) two strings to see if they're the same, while three equal signs check that the values and types are the same.