--- id: 5d792539ec758d45a6900173 title: Part 125 challengeType: 0 isHidden: true --- ## Description
The `length` property returns the length of an array. Use this property with the `sum` function to define an `average` function. As with `sum`, add this function to both the global scope and to `spreadsheetFunctions`.
## Instructions
## Tests
```yml tests: - text: See description above for instructions. testString: assert(average([1, 5, 12]) === 6 && spreadsheetFunctions.average([1, 20, 3, 8]) === 8); ```
## Challenge Seed
```html ```
### Before Test
```html Spreadsheet
```
### After Test
```html ```
## Solution
```html ```