3 ms·
Let is fine for defining constants, but it should also be used whenever possible for two reasons: 1. It gives you additional safety against accidental reassign
by gress 12y ago
Let is fine for defining constants, but it should also be used whenever possible for two reasons:
1. It gives you additional safety against accidental reassignment.
2. It gives the compiler a major optimization hint since the value is not a variable.