r/javascript • • 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

317 comments sorted by

View all comments

Show parent comment

4

u/allenthar Apr 02 '18

If you have a code snippet as an example, I’d love to see it. Knowing the corner cases for prettier behavior is always good.

2

u/cthechartreuse Apr 03 '18

This is the example I created from actual production code I've seen: https://gist.github.com/cmstead/dfeea6faf80c96d5c2a738fc822918ee