I have 3 <section> tags in my html file, I’ve created one more <section> element in js
const lastSection = document.createElement('section');
and I saved them all in a variable
const allSections = document.querySelectorAll('section');
the issue is, when I run console.log(allSections.length); it returns only 3.
I want an explanation of what's going in ?
I expected it returns 4;
appendChildto append the new section to the last line.