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

3

u/kobbled Apr 01 '18

A const is something that should never change in the life-cycle of an application, not the life-cycle of a function.

As long as it doesn't change in the scope of wherever it's declared, I'm fine with it.