Update document, window
This commit is contained in:
@ -7,7 +7,7 @@ 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().innerHTML` to update the value of the selected element.
|
||||
- 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user