IanVS
// Possible Error
if (x = 0) {
var b = 1;
}
// Comparison, not Assignment
if (x === 0) {
var b = 1;
}// Not Best Practice
if (x == 42) { doSomething() }// Inconsistent Style
foo = "bar";
x=['baz' ]// Triple Equals
if (x === 42) { doSomething() }// Consistent Quotes, Spacing, Semis
foo = "bar";
x = ["baz"];