Skip to content

Commit

Permalink
docs(readme): use const instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Feb 10, 2025
1 parent 8c5a320 commit 2136c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ The usage is exactly the same (despite of the [error handling](#error-handling)
as with the corresponding functions on the global scope.

```js
var intervalId = setInterval(() => {
const intervalId = setInterval(() => {
// do something many times
}, 100);

clearInterval(intervalId);

var timeoutId = setTimeout(() => {
const timeoutId = setTimeout(() => {
// do something once
}, 100);

Expand Down

0 comments on commit 2136c48

Please sign in to comment.