+ 1

WHAT IS THE DIFFERENCE OF VAR,LET, CONST

Js(JavaScript)

15th Dec 2024, 11:53 AM
Game Europe
Game Europe - avatar
3 Respostas
+ 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.
15th Dec 2024, 11:59 AM
Lothar
Lothar - avatar
+ 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
15th Dec 2024, 2:01 PM
RuntimeTerror
RuntimeTerror - avatar
+ 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
15th Dec 2024, 2:24 PM
Alhaaz
Alhaaz - avatar