0

What's the difference between var and let?

In layman terms

12th Oct 2022, 6:21 AM
Mozzie
Mozzie - avatar
2 Answers
12th Oct 2022, 7:01 AM
Ipang
+ 3
Kim Jonas, If u are declaring variable using var, it can be redeclared ...and var can be accessed inside as well as outside Whereas in let variable declared can't be redeclared...and it is accessible inside only I think this the difference....
12th Oct 2022, 6:28 AM
Venkatesh
Venkatesh - avatar