John Mirage• 1,590
@john-mirage
Posted
var:
- function-scoped or globally-scoped
- can be reassigned
let:
- block-scoped
- can be reassigned
- block-scoped
- cannot be reassigned
- if a constant is an object, its properties can be updated or removed.
- if a constant is an array, its items can be updated or removed.
Marked as helpful
1