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?