@@ -243,7 +243,7 @@ Objects are very important in JavaScript. In fact, you've already used a special
243
243
They are special kinds of data, with ** properties** and ** methods**
244
244
245
245
``` js
246
- var message = " It's cold today"
246
+ var message = " It's cold today" ;
247
247
console .log (message .length ); // using length property
248
248
console .log (message .toUpperCase ()); // using toUpperCase() method
249
249
```
@@ -257,7 +257,7 @@ var object = {
257
257
propertyName: propertyValue,
258
258
propertyName: propertyValue,
259
259
...
260
- }
260
+ };
261
261
```
262
262
263
263
Let's apply that to store some information about London.
@@ -274,7 +274,7 @@ var london = {
274
274
averageRent: 1106 ,
275
275
dailyTubePassengerJourney: 3500000 ,
276
276
olympics: [ 1908 , 1948 , 2012 ]
277
- }
277
+ };
278
278
```
279
279
280
280
To access the properties, we can either use the ** bracket notation** like in Arrays, or the ** dot notation**
@@ -412,7 +412,7 @@ var london = {
412
412
averageRent: 1106 ,
413
413
dailyTubePassengerJourney: 3500000 ,
414
414
olympics: [ 1908 , 1948 , 2012 ]
415
- }
415
+ };
416
416
```
417
417
418
418
#### Display the population
0 commit comments