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.
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/