2016-04-06 08:11:48 +02:00
|
|
|
## Variables
|
|
|
|
|
2016-06-14 23:20:45 +02:00
|
|
|
[Assign](/blocks/variables/assign) (set) a variable's value
|
2016-04-06 08:11:48 +02:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
let x = 0;
|
|
|
|
```
|
|
|
|
|
|
|
|
Get a variable's value
|
|
|
|
|
|
|
|
```blocks
|
|
|
|
let x = 0;
|
|
|
|
x;
|
|
|
|
```
|
|
|
|
|
2016-06-14 23:20:45 +02:00
|
|
|
[Change](/blocks/variables/change-var) a variable's value
|
2016-04-06 08:11:48 +02:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
let x = 0;
|
|
|
|
x+=1;
|
|
|
|
```
|