Update 21_day_dom.md

Edit by class name would be 3
pull/492/head
Nihar Gharat 3 years ago committed by GitHub
parent 1e68a81fe9
commit bc09554607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -105,7 +105,7 @@ document.getElementsByClassName('classname')
const allTitles = document.getElementsByClassName('title')
console.log(allTitles) //HTMLCollections
console.log(allTitles.length) // 4
console.log(allTitles.length) // 3
for (let i = 0; i < allTitles.length; i++) {
console.log(allTitles[i]) // prints each elements in the HTMLCollection

Loading…
Cancel
Save