lastElementChild

Returns the last child that is an element, and null otherwise.

MDN Reference