Consistent wording

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-11-01 20:50:57 +02:00
parent ef40a60a50
commit 0ba944aa66
18 changed files with 21 additions and 18 deletions

View File

@ -8,8 +8,8 @@ Creates a counter with the specified range, step and duration for the specified
- Check if `step` has the proper sign and change it accordingly.
- Use `setInterval()` in combination with `Math.abs()` and `Math.floor()` to calculate the time between each new text draw.
- Use `Document.querySelector()`, `Element.innerHTML` to update the value of the selected element.
- Omit the fourth parameter, `step`, to use a default step of `1`.
- Omit the fifth parameter, `duration`, to use a default duration of `2000`ms.
- Omit the fourth argument, `step`, to use a default step of `1`.
- Omit the fifth argument, `duration`, to use a default duration of `2000`ms.
```js
const counter = (selector, start, end, step = 1, duration = 2000) => {