Possible Duplicate:
When to Use Double or Single Quotes in JavaScript
In Javascript, you can either use double quotes or single quotes around strings, and it means exactly the same thing:
var a = 'hello';
var b = "hello";
alert(a === b); //alerts true
I was reading some of Douglas Crockford's code, and it looks like he usually uses single quotes around string literals.
Further, most of the high rep people who answer Javascript questions around here seem to use single quotes around strings (example).
Since I usually use double quotes around strings (mostly just out of habit), I'm starting to feel self-conscious about all the answers I've given here that use double quotes. I haven't heard of any particular reason why one should use one over the other, since, as far as I can tell, they are interchangeable.
Is there a reason why all of the Javascript ninjas use single quotes? Should I use single quotes too? Will there be some unexpected fatal consequences if I continue using double quotes?