length

length returns the number of elements in the collection.

Syntax

collection.length

Examples

1

2

3

4

Internal

item

namedItem

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu