jsguide: Explain more - Annotate the var declaration with @const instead
Open
lang:js
- Dominant language
- HTML
- Stars
- 39.6k
- Forks
- 12.9k
- Avg merge
- 42m
- Merged PRs (30d)
- 15
Description
https://google.github.io/styleguide/jsguide.html#appendices-legacy-exceptions-var
For global declarations where the const keyword would be used, if it were available, annotate the var declaration with @const instead (this is optional for local variables).
- Please explain a bit more on this.
Contributor guide
Assessment
This issue has not been assessed yet.