+ 1

Is it possible to change variable values over time?

11th Sep 2016, 4:11 PM
Kristof St Bernard
Kristof St Bernard - avatar
6 ответов
+ 2
Yes, it is. You can't change the value of constants however.
11th Sep 2016, 5:17 PM
Zen
Zen - avatar
+ 1
yes it is
11th Sep 2016, 4:11 PM
Kristof St Bernard
Kristof St Bernard - avatar
+ 1
yes
2nd Oct 2016, 11:50 PM
Kristof St Bernard
Kristof St Bernard - avatar
+ 1
use var if you will change the value of the variable, use let when no need to change the value.
30th Oct 2016, 3:49 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar
+ 1
yes you can change the value unless it is constant
15th Jan 2017, 8:57 AM
Shailesh Kumar
Shailesh Kumar - avatar
0
You simply type <name_of_variable> = <new_value>, without preceding name by "var".
11th Oct 2016, 2:00 PM
Aleksander Wędrychowski
Aleksander Wędrychowski - avatar