My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

JavaScript : Why do some developers compare variables as 1 == a rather than a == 1?

Bill Schrockwitz's photo
Bill Schrockwitz
·May 8, 2016

What is the benefit of the former over the later? What do you prefer?