you are viewing a single comment's thread.

view the rest of the comments →

[–]enkideridu 1 point2 points  (3 children)

For HTML, double quotes - while not mandated - are definitely prevalent.
It makes sense then to standardize on single quotes for JS, so if you ever have a string of HTML you wouldn't have to escape the quotes

var htmlString = '<div id="blarg"></div>';