3DuF icon indicating copy to clipboard operation
3DuF copied to clipboard

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

Open rkrishnasanka opened this issue 3 years ago • 0 comments

Description

Variables that are not re-assigned are referred to as constant variables. So, we recommend using const for such variables instead of let to define because the value of a variable declared with const remains the same within its scope. It cannot be updated or re-declared and also reduces cognitive load …

Occurrences

There are 673 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/CIDARLAB/3DuF/issue/JS-0242/occurrences/

rkrishnasanka avatar Jun 11 '21 20:06 rkrishnasanka