There are 3 types of variables in javascript such as:
- var
- let
- const
in “var” you can declare var and assign its value more than one. But in “Let” you just declare the same variable more than one but not assign. Lastly, in ” const” not possible either declare nor assign same variable or it’s value more than one. If you do that you will see an error on browser console.
1 Comment
web page
Very excellent info