History of JavaScript
var | let | const |
---|---|---|
- allow re-declare a varible | - prevent declarinng another varible with same name | - prevent declarinng another varible with same name |
- can be re-assign value | - can be re-assign value | - value is initialize simultaneously when declaring the variable |