(JS-0242) Use const
declarations for variables that are never reassigned
#673
Labels
const
declarations for variables that are never reassigned
#673
Description
Variables that are never re-assigned a new value after their initial declaration should be declared with the
const
keyword. This prevents the programmer from erroneously re-assigning to a read-only variable, and informs those reading the code that a variable is a constant value.Occurrences
There are 61 occurrences of this issue in the repository.
See all occurrences on DeepSource → app.deepsource.com/gh/nearbeach/NearBeach/issue/JS-0242/occurrences/
The text was updated successfully, but these errors were encountered: