Possible Duplicate:
What is the difference between ‘ and “ in JavaScript?
Should i use ' or " char, to define a string in javascript?
Is it just a developer's choice? I think, strings more offten contains ' char, so i prefer using of "(with inner " translated to \").
What do you think?
I prefer to use ", so after a full day of coding in JavaScript, I don't try to use ' on strings in C#
Most of the time I use html elements like that :
<input type="button" onclick="alert('test')" />
because of the attribute value has double quotes, I use single quote to represent javascript strings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With