HTML DOM Element childElementCount
HTML DOM Element childElementCount Property
The childElementCount property is used to return number of child elements of an element and is a read-only property. It is similar to children.length.
Syntax:-
Its syntax is:- element.childElementCount
Return:-
Its return is:- number of child elements of the element