Possible Duplicate:
Javascript === vs == : Does it matter which “equal” operator I use?
Many recommend using ===
for comparison everywhere in your JavaScript instead of ==
, and it sounds reasonable.
I was wondering are there any situations where using ==
would be actually beneficial over ===
?