Re:Using const/let instead of var can make JavaScript code r...
by MaxBarraclough on Wednesday October 21, 2020 @04:36AM
(#24845907)
Why? What's the problem?
const improves readability, and the ability to reason about code. It lessens the need to exhaustively scan the code looking for other assignments to the variable.
const improves readability, and the ability to reason about code. It lessens the need to exhaustively scan the code looking for other assignments to the variable.