Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-22 20:24:30 +03:00
parent d35575373f
commit 5cb69e3c5c
58 changed files with 195 additions and 126 deletions

View File

@ -6,7 +6,7 @@ tags: math,intermediate
Rounds a number to a specified amount of digits.
- Use `Math.round()` and template literals to round the number to the specified number of digits.
- Omit the second argument, `decimals` to round to an integer.
- Omit the second argument, `decimals`, to round to an integer.
```js
const round = (n, decimals = 0) =>