Skip to content

Commit 13f8e75

Browse files
committed
Merge pull request #154 from steverob/patch-3
minor updates to js lesson 1
2 parents 93f291c + 5fe50ba commit 13f8e75

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

js/lesson1/tutorial.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Some common usages around the web is
2727
[Games](http://gorillas.heroku.com)
2828
![](assets/images/game.png)
2929

30-
It is also becoming common outside of the browser. You can write your own programmes and servers in JavaScript using [Node.js](http://nodejs.org/).
30+
It is also becoming common outside of the browser. You can write your own programs and servers in JavaScript using [Node.js](http://nodejs.org/).
3131

3232

3333

@@ -108,7 +108,7 @@ console.log("We are in " + year + ", but " + nextYear + " is just around the cor
108108

109109
That's great! We can combine strings together and add up numbers.
110110

111-
> Sometimes you may forget to use `;` after a statement. Usually this is ok, but sometimes strange things can happen. Try not to forget to use `;`,
111+
> Sometimes you may forget to use `;` after a statement. Usually this is ok, but sometimes strange things can happen. Try not to forget to use `;`.
112112
113113
- **booleans** - true/false
114114

@@ -128,6 +128,7 @@ var iDontHaveAValue;
128128

129129
console.log("What kind of variable am I? " + iDontHaveAValue);
130130
```
131+
> The general convention in JavaScript is to use `lowerCamelCase` while naming variables.
131132
132133
### Operations
133134
The are are a number of operations you can apply, just like when using math.
@@ -247,11 +248,11 @@ var people = coaches + students;
247248

248249
if (people > pizzas) {
249250
console.log("We have more people than pizzas!");
250-
};
251+
}
251252

252253
if (students > pizzas) {
253254
console.log("But we have more students than pizzas! Let's not give the coaches any food.");
254-
};
255+
}
255256
```
256257

257258
#### Less than `<`

0 commit comments

Comments
 (0)