length

The length JS NodeList returns the number of nodes in the collection.

Syntax

collection.length

Examples

1 · return

2 · for

item

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu