We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff1dd88 + f161169 commit 662503fCopy full SHA for 662503f
1 file changed
js/lesson2/tutorial.md
@@ -552,16 +552,16 @@ var london = {
552
```js
553
function displayPopulation() {
554
// Make a new <p></p> for population. This is not attached to the DOM yet.
555
- var population = document.createElement('p');
+ var paragraph = document.createElement('p');
556
557
// Make some text content to put into your <p></p>
558
var content = document.createTextNode('Population: ' + london.population);
559
560
// Put the text content into the <p></p>.
561
- population.appendChild(content);
+ paragraph.appendChild(content);
562
563
// Finally the population can be appended to the body, and will become visible in the browser.
564
- document.body.appendChild(population);
+ document.body.appendChild(paragraph);
565
}
566
```
567
0 commit comments