Skip to content

Commit 02011b0

Browse files
committed
Merge pull request #147 from amoe/gh-pages
Add some semicolons
2 parents 186f306 + 388e1d9 commit 02011b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/lesson2/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Objects are very important in JavaScript. In fact, you've already used a special
243243
They are special kinds of data, with **properties** and **methods**
244244

245245
```js
246-
var message = "It's cold today"
246+
var message = "It's cold today";
247247
console.log(message.length); // using length property
248248
console.log(message.toUpperCase()); // using toUpperCase() method
249249
```
@@ -257,7 +257,7 @@ var object = {
257257
propertyName: propertyValue,
258258
propertyName: propertyValue,
259259
...
260-
}
260+
};
261261
```
262262

263263
Let's apply that to store some information about London.
@@ -274,7 +274,7 @@ var london = {
274274
averageRent: 1106,
275275
dailyTubePassengerJourney: 3500000,
276276
olympics: [ 1908, 1948, 2012]
277-
}
277+
};
278278
```
279279

280280
To access the properties, we can either use the **bracket notation** like in Arrays, or the **dot notation**
@@ -412,7 +412,7 @@ var london = {
412412
averageRent: 1106,
413413
dailyTubePassengerJourney: 3500000,
414414
olympics: [ 1908, 1948, 2012]
415-
}
415+
};
416416
```
417417

418418
#### Display the population

0 commit comments

Comments
 (0)