waldothedeveloper / lullabyhouse

At Lullaby House, we provide a wide range of cleaning services to help you keep your home clean and tidy.
Other
1 stars 0 forks source link

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

Closed waldothedeveloper closed 1 year ago

waldothedeveloper commented 1 year ago

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 is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/waldothedeveloper/lullabyhouse/issue/JS-0242/occurrences/