lastElementChild

The lastElementChild JS ParentNode returns the last child that is an element; otherwise null.

Syntax

element = node.lastElementChild

Examples

1 · element

2 · element

3 · innerHTML

4 · tagName

append

children

firstElementChild

prepend

querySelector

querySelectorAll

replaceChildren

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu