arraySum
Modified on Mon, 07 Aug 2023
Description
Compute the sum of the values in an array
Syntax
arraySum(array)
Parameters
Input Parameter | Type | Description |
---|---|---|
array | Array | The array to iterate over |
Return value
Type |
---|
number |
Sample
Example | Result | Description |
---|---|---|
arraySum([4, 2, 8, 6]) | 20 | Returns the sum of an array of elements |
To view all the List functions, click here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article