|
|
|
|
|
by zdragnar
203 days ago
|
|
The only reason to use let is to indicate to the reader that you're going to be reassigning the variable to a new value at some point within the current scope. If you aren't going to be doing that, using const lets the reader know the assignment won't change to refer to a new value. It's that simple. |
|