SyntaxFix
Write A Post
Hire A Developer
Questions
Here is how you can do it with for-in loop.
for-in
var children = element.childNodes; for(child in children){ console.log(children[child]); }