8000 highlight the syntax · gramos-encora/learn-javascript@1874643 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1874643

Browse files
committed
highlight the syntax
1 parent 8b096d4 commit 1874643

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

en/basics/variables.md

Lines changed: 6 additions & 6 deletions
9C34
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,39 @@ description: Variables are used to store and hold data. It can hold various type
88

99
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.
1010

11-
```
11+
```javascript
1212
3 + 5 = 8
1313
```
1414

1515
You start performing calculations when you introduce an unknown, for example, `x` below:
1616

17-
```
17+
```javascript
1818
3 + x = 8
1919
```
2020

2121
Shifting those around you can determine `x`:
2222

23-
```
23+
```javascript
2424
x = 8 - 3
2525
-> x = 5
2626
```
2727

2828
When you introduce more than one you make your terms more flexible - you are using variables:
2929

30-
```
30+
```javascript
3131
x + y = 8
3232
```
3333

3434
You can change the values of `x` and `y` and the formula can still be true:
3535

36-
```
36+
```javascript
3737
x = 4
3838
y = 4
3939
```
4040

4141
or
4242

43-
```
43+
```javascript
4444
x = 3
4545
y = 5
4646
```

0 commit comments

Comments
 (0)
0