HTMLCollection length
HTMLCollection length Property
The length property is used to return number of elements in HTMLCollection. It is read-only property and useful when we want to loop through an HTMLCollection. Elements in it can be accessed by their index numbers that start at 0.
Syntax:-
Its syntax is:- HTMLCollection.length
Return:-
Its return is:- number of elements in the HTMLCollection