Skip to content

Commit 04fe877

Browse files
Userbitamiller-gh
authored andcommitted
Wrong messy example of recursive setTimeout use
1 parent 2862d81 commit 04fe877

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • src/documentation/0032-javascript-timers

src/documentation/0032-javascript-timers/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ const myFunction = () => {
118118
setTimeout(myFunction, 1000)
119119
}
120120

121-
setTimeout(
122-
myFunction()
123-
}, 1000)
121+
setTimeout(myFunction, 1000)
124122
```
125123

126124
to achieve this scenario:

0 commit comments

Comments
 (0)