Skip to content

Commit 3764a7b

Browse files
author
Aaron O'Mullan
committed
Fix typos in basics/variables.md
1 parent 9eb4f68 commit 3764a7b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

basics/variables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Variables
22

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.
44

55
```
66
3 + 5 = 8
@@ -15,11 +15,11 @@ You start performing calculations when you introduce an unknown, for example x b
1515
Shifting those around you can determine x:
1616

1717
```
18-
x = 8 - 3
18+
x = 8 - 3
1919
-> x = 5
2020
```
2121

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:
2323

2424
```
2525
x + y = 8
@@ -39,9 +39,9 @@ x = 3
3939
y = 5
4040
```
4141

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.
4343

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.
4545

4646
```
4747
var x = 5;

0 commit comments

Comments
 (0)