๐ var -> Var can be re-assigned, re-defined and has a function-scope. When we declared outside the function, it has a global scope and it attached itself to the window object.
๐ let -> Let can be re-assigned. Itโs scope is within a block of code.
๐ const -> Const cannot be re-assigned or re-defined. Itโs scope is within a block of code.
Top comments (0)