You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/basics/variables.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,39 +8,39 @@ description: Variables are used to store and hold data. It can hold various type
8
8
9
9
The first step towards really understanding programming is looking back at algebra. If you remember it from school, algebra starts with writing terms such as the following.
10
10
11
-
```
11
+
```javascript
12
12
3+5=8
13
13
```
14
14
15
15
You start performing calculations when you introduce an unknown, for example, `x` below:
16
16
17
-
```
17
+
```javascript
18
18
3+ x =8
19
19
```
20
20
21
21
Shifting those around you can determine `x`:
22
22
23
-
```
23
+
```javascript
24
24
x =8-3
25
25
-> x =5
26
26
```
27
27
28
28
When you introduce more than one you make your terms more flexible - you are using variables:
29
29
30
9C34
-
```
30
+
```javascript
31
31
x + y =8
32
32
```
33
33
34
34
You can change the values of `x` and `y` and the formula can still be true:
0 commit comments