GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix typos in basics/variables.md · octatone/javascript@3764a7b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • basics
    • variables.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎basics/variables.md‎

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 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.