Caffeinated Coder
Book an appointment
Lesson 22 · JavaScript in the browser

The DOM from JavaScript

The browser turns HTML into the DOM: a tree of objects called nodes that JavaScript can read and change. Follow a seven-line script through a shopping list: find the list, make a new item outside the tree, fill it, append it, give it a class, remove the old item and count what is left. Then watch the screen catch up once the script has finished.

12 min9 steps5 questionsIntermediate
Fig 22 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.