sum
The sum function returns a number that is the sum of the numeric values of each node in a given node-set.
Syntax
sum(node-set)
Parameters
Return value
A number.
Description
None.
Specifications
Gecko support
Supported.
The sum function returns a number that is the sum of the numeric values of each node in a given node-set.
sum(node-set)
A number.
None.
Supported.
This page was last modified on by MDN contributors.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.