Skip to content

Commit 662503f

Browse files
authored
Merge pull request #459 from chrislawes/feature/js-lesson2-var-name
(JS lesson 2) Rename population var
2 parents ff1dd88 + f161169 commit 662503f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

js/lesson2/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,16 +552,16 @@ var london = {
552552
```js
553553
function displayPopulation() {
554554
// Make a new <p></p> for population. This is not attached to the DOM yet.
555-
var population = document.createElement('p');
555+
var paragraph = document.createElement('p');
556556

557557
// Make some text content to put into your <p></p>
558558
var content = document.createTextNode('Population: ' + london.population);
559559

560560
// Put the text content into the <p></p>.
561-
population.appendChild(content);
561+
paragraph.appendChild(content);
562562

563563
// Finally the population can be appended to the body, and will become visible in the browser.
564-
document.body.appendChild(population);
564+
document.body.appendChild(paragraph);
565565
}
566566
```
567567

0 commit comments

Comments
 (0)