Javascript best practices
References
-
const and let are block scoped
- Use const for references
- using const ensures that references cannot be reassigned.
include example
- using const ensures that references cannot be reassigned.
- Use let to reassign references. Avoid using var
include example