About Lesson
DOM childNodes Property: The childNodes property is a property of Node in Javascript and is used to return a Nodelist of child nodes. Nodelist items are objects, not strings and they can be accessed using index numbers. The first childNode starts at index 0.
Syntax:
element.childNodes
DOM children Property: The children are a property of an element that returns the child elements of an element as objects.
Syntax:
element.children
Exercise Files
No Attachment Found
Join the conversation