Node.parentNode

JavaScript’s Node.parentNode read-only property returns the Node’s parent node or null if the Node does not have a parent node.

Node.parentElement

JavaScript’s Node.parentElement read-only property returns the Node’s parent element or null if the Node does not have a parent element.

Element.className

JavaScript’s Element.className property gets and sets the value of the Element’s class attribute.

Element.childElementCount

JavaScript’s Element.childElementCount read-only property returns the number of the Element’s child elements.

Element.lastElementChild

JavaScript’s Element.lastElementChild read-only property returns the Element’s last child element or null if the Element has no child elements.

Element.firstElementChild

JavaScript’s Element.firstElementChild read-only property returns the Element’s first child element or null if the Element has no child elements.

Node.lastChild

JavaScript’s Node.lastChild read-only property returns the Node’s last child or null if the Node has no children.

Node.firstChild

JavaScript’s Node.firstChild read-only property returns the Node’s first child or null if the Node has no children.