GeezerVison is showing github.com — Fix typos in basics/variables.md · ufo-github/javascript-2@3764a7b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: basics/variables.md +5-5Lines changed: 5 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # Variables |
2 | 2 |
|
3 | | -The first step towards really understanding programming is looking back at algebra. If you remember from school, algebra starts with writing terms such as the following. |
| 3 | +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. |
4 | 4 |
|
5 | 5 | ``` |
6 | 6 | 3 + 5 = 8 |
@@ -15,11 +15,11 @@ You start performing calculations when you introduce an unknown, for example x b |
15 | 15 | Shifting those around you can determine x: |
16 | 16 |
|
17 | 17 | ``` |
18 | | -x = 8 - 3 |
| 18 | +x = 8 - 3 |
19 | 19 | -> x = 5 |
20 | 20 | ``` |
21 | 21 |
|
22 | | -When you introduce more then one you make your term more flexible - you are using variables: |
| 22 | +When you introduce more than one you make your terms more flexible - you are using variables: |
23 | 23 |
|
24 | 24 | ``` |
25 | 25 | x + y = 8 |
|
39 | 39 | y = 5 |
40 | 40 | ``` |
41 | 41 |
|
42 | | -The same works with programming languages—in programming, variables are containers for values that can vary. Variables can hold all kind of values and also the results of calculations. Variables have a name and a value separated by an equals sign (=). Variable names can be any letter or word, but bear in mind that there are restrictions from language to language of what you can use, as some words are reserved for other functionality. |
| 42 | +The same is true for programming languages. In programming, variables are containers for values that change. Variables can hold all kind of values and also the results of computations. Variables have a name and a value separated by an equals sign (=). Variable names can be any letter or word, but bear in mind that there are restrictions from language to language of what you can use, as some words are reserved for other functionality. |
43 | 43 |
|
44 | | -Let's check out how it works in Javascript, The following defines two variables, calculates the result of adding the two and defines this result as a value of a third variable. |
| 44 | +Let's check out how it works in Javascript, The following code defines two variables, computes the result of adding the two and defines this result as a value of a third variable. |
45 | 45 |
|
46 | 46 | ``` |
47 | 47 | var x = 5; |
|