+ 1

Why can't we use let instead of var?

1st Jul 2016, 12:05 PM
Utpal Kumar
Utpal Kumar - avatar
4 odpowiedzi
+ 2
we use let for constants and var for variables
13th Jul 2016, 8:23 AM
Aman singh Sikarwar
Aman singh Sikarwar - avatar
+ 1
Because we use let in constant.
2nd Jul 2016, 5:08 PM
Rafael Valverde
Rafael Valverde - avatar
+ 1
You could use let in your own playground. But in this case, the question is to put the TWO Variables together. He doen't say the two Constants. Why you can't here unlike your own playground? because the boxes answer are predefined and the button Check , checks if there is var or something else. Enjoy the App.
3rd Aug 2016, 8:32 AM
Abdelkader Ait Assou
Abdelkader Ait Assou - avatar
+ 1
Where can't you use it? A value declared using a var can be changed later on, but a value declared using let cannot be changed
21st Sep 2016, 11:07 PM
Alex
Alex - avatar