Format snippets
This commit is contained in:
@ -9,7 +9,8 @@ Calculates the average of two or more numbers.
|
||||
- Divide the resulting array by its length.
|
||||
|
||||
```js
|
||||
const average = (...nums) => nums.reduce((acc, val) => acc + val, 0) / nums.length;
|
||||
const average = (...nums) =>
|
||||
nums.reduce((acc, val) => acc + val, 0) / nums.length;
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user