lastElementChild

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

Syntax

element = node.lastElementChild

Examples

1

2

3

4

Internal

append

children

firstElementChild

prepend

querySelector

querySelectorAll

replaceChildren

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu