1.

What is the difference between let, var & const?

Answer»
LetVarConst
Let variables can be updated within its scope.Var variables can be updated.The VALUE of const is cannot be updated.
Redeclaration is possible within its scope.Redeclaration is possible.Redeclaration is not possible.
For example:
jeepName ="Saab";
let carName="Ford";
For example:
jeepName = "Ford";
var jeepName;
For example:
const JEEP = {type:"Open", MODEL:"700", COLOR:"BLACK"};


Discussion

No Comment Found