Sign in
Log inSign up

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?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct