@@ -243,7 +243,7 @@ Objects are very important in JavaScript. In fact, you've already used a special
243243They 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" ;
247247console .log (message .length ); // using length property
248248console .log (message .toUpperCase ()); // using toUpperCase() method
249249```
@@ -257,7 +257,7 @@ var object = {
257257 propertyName: propertyValue,
258258 propertyName: propertyValue,
259259 ...
260- }
260+ };
261261```
262262
263263Let'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
280280To 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