Skip to content

(JS-0242) Use const declarations for variables that are never reassigned #119

@HansEJC

Description

@HansEJC

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 16 occurrences of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/HansEJC/hansejc.github.io/issue/JS-0242/occurrences/

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status
To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions