fasturtle:
Doug Crockford says to never use the double equal operator in JavaScript. There are too many errors to be useable and the rules are not memorable. Instead, only ever use the triple equal operator (===). From his Google Tech Talk entitled “JavaScript: The Good Parts.”
I used to be a dedicated Javascript developer. It’s actually a really awesome language, so long as you learn the tricks and tips, such as the above.

fasturtle:

Doug Crockford says to never use the double equal operator in JavaScript. There are too many errors to be useable and the rules are not memorable. Instead, only ever use the triple equal operator (===). From his Google Tech Talk entitled “JavaScript: The Good Parts.”

I used to be a dedicated Javascript developer. It’s actually a really awesome language, so long as you learn the tricks and tips, such as the above.