medium10 pts · first answer countshtml-cssdom
Live versus static lists
You add a new .item element after taking both lists. Which list includes it?
const a = document.querySelectorAll(".item")
const b = document.getElementsByClassName("item")
container.append(newItem) // newItem has class "item"Discussion 0
Join free to post in the discussion.
Related questions
- What the main element is forFrontend Developer
- article versus sectionFrontend Developer
- Link or buttonFrontend Developer
- What type="email" gives youFrontend Developer
- Why <!DOCTYPE html> mattersFrontend Developer
- The lang attributeFrontend Developer
- Width on a spanFrontend Developer
- Caption for a chart imageFrontend Developer