1 month ago
21 lines636 B
Lesson 5: Selecting and changing elements
Selecting and changing elements comes up in almost every real JavaScript project. We start with the why, then write code together.
Read the full lesson: https://glibcode.net/courses/javascript-web/lessons/5
Files
dom.html: selecting elements and changing their text and classes
Tip:
console.table(array)is much easier to read thanconsole.logfor lists of objects.
Run it
open dom.html # or double-click it
Exercises
See exercises.md. Ask in the forum after you have tried.