Skip to content

Commit f161169

Browse files
committed
rename population var
1 parent ff1dd88 commit f161169

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)