+ 1
WHAT IS THE DIFFERENCE OF VAR,LET, CONST
Js(JavaScript)
3 Réponses
+ 5
Game Europe ,
this is a question that you can check *yourself* by using a siple web search.
> you will get several helpful answers with descriptions and code samples.
+ 2
let = modern way of declaring variables
const = modern way of declaring variables whose value cannot be changed
You don't have to know the meaning of var. I have never used it before
+ 2
You can get useful Answers of your question via single web search as Lothar mentioned. but still here is the difference
Var(Variable): Variable is like a container it which we store values
Const: it a keyword use to make a variable value const mean you can't change it anymore if try to it will occur an error