Updated comment output value to 3

pull/787/head
ramalingaprasad.gs 2 years ago
parent 55d8e3dbc0
commit 0abd4d92d1

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

Loading…
Cancel
Save