Lab 6 FAQ
- How else can I debug JavaScript?
-
You can write to the console
using
console.log(message)
- Why can't I use a for-each loop with
getElementsByTagName
-
The for-each loop can only be used on Arrays, Maps, and Sets.
An HTMLCollection is an array-like object