Your
JS
Blog
Docs
Downloads
More
Console
IO Apps
Bookmarklet Creator
Other Tools & Utilities
License (MIT)
Version Updates
Sign In
YourJS 1.0
jPaq
Chris West's Blog
sum()
Gets the sum of an array of numbers.
This function is valid in v2.0.0 to v2.24.3. This function has been downloaded 65 times.
Try
YourJS.sum(…)
Toggle Dropdown
Try
{{ libName }}.{{ functionName }}(…)
Try All
YourJS
Functions
Parameter
{
Array.
}
arr
Array of numbers to be summed up.
Returns
{
number
}
Sum of the array of numbers.