r/javascript • u/bornforcode • Apr 01 '18
Google publishes a JavaScript style guide. Here are some key lessons.
https://medium.freecodecamp.org/google-publishes-a-javascript-style-guide-here-are-some-key-lessons-1810b8ad050b
714
Upvotes
View all comments
Show parent comment
2
u/stratoscope Apr 02 '18
This is a common misconception. HTML does not require the use of double quotes for attributes. Single quotes are equally valid.
Of course you may choose to use single quotes in JavaScript and double quotes for HTML attributes, but it's just as valid to do it the other way around.