Help Me/Question What Is The Main Difference Between Var And Let In Javascript?

saurabh mathur

Well-Known Member
VAR- the JavaScript variables statement are used to declare the variable and we can initialize the value of that variable.

LET- this refers to the local variable in a block scope. It is also similar to var and we can optionally initialize the variable.
 
Top