4 ms·
I use double quotes for most strings and single quotes for characters, just because it's perfectly valid without having to learn new habits. If I have HTML in
by mc808 11y ago
I use double quotes for most strings and single quotes for characters, just because it's perfectly valid without having to learn new habits.
If I have HTML in a JavaScript string, I don't quote the attributes at all unless necessary, instead focusing on more pressing matters like how to get that shit out of my JavaScript.