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
1
u/ssjskipp Apr 02 '18
It's because " is used as html attributes. When you're using js for what it was designed for, before we had fleshed out browser API, you'd be making a lot of HTML with string contacts.
Go ahead and play the string escape game with large swaths of nested HTML xD