# SUM

**The function SUM takes a List of Numbers and adds them all together.**

This function takes a [List](../../variable-data-types/the-list-data-type) of [Numbers](../../variable-data-types/the-number-variable-data-type) as input. It outputs a single Number: the sum up every number in the List, added together.&#x20;

#### Declaration

```javascript
SUM(list_of_numbers) -> sum_of_numbers
```

&#x20;

#### Parameters

**list\_of\_numbers** (type: _List_) A list of Numbers to add together.

#### Return Values

**sum\_of\_numbers** (type: _Number_) Number representing the sum of all the Numbers in the given List.

#### Examples

The following example takes a List of Numbers and returns the sum of all the Numbers in the given List:

```javascript
SUM([1, 4, 3, 3, 2]) -> 13
```
