File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -188,14 +188,14 @@ async function timerExample() {
188
188
timerExample ();
189
189
```
190
190
191
- ### ` setInterval(callback, delay[, ...args]) `
191
+ ### ` setInterval(callback[ , delay[, ...args] ]) `
192
192
<!-- YAML
193
193
added: v0.0.1
194
194
-->
195
195
196
196
* ` callback ` {Function} The function to call when the timer elapses.
197
197
* ` delay ` {number} The number of milliseconds to wait before calling the
198
- ` callback ` .
198
+ ` callback ` . ** Default ** : ` 1 ` .
199
199
* ` ...args ` {any} Optional arguments to pass when the ` callback ` is called.
200
200
* Returns: {Timeout} for use with [ ` clearInterval() ` ] [ ]
201
201
@@ -206,14 +206,14 @@ set to `1`. Non-integer delays are truncated to an integer.
206
206
207
207
If ` callback ` is not a function, a [ ` TypeError ` ] [ ] will be thrown.
208
208
209
- ### ` setTimeout(callback, delay[, ...args]) `
209
+ ### ` setTimeout(callback[ , delay[, ...args] ]) `
210
210
<!-- YAML
211
211
added: v0.0.1
212
212
-->
213
213
214
214
* ` callback ` {Function} The function to call when the timer elapses.
215
215
* ` delay ` {number} The number of milliseconds to wait before calling the
216
- ` callback ` .
216
+ ` callback ` . ** Default ** : ` 1 ` .
217
217
* ` ...args ` {any} Optional arguments to pass when the ` callback ` is called.
218
218
* Returns: {Timeout} for use with [ ` clearTimeout() ` ] [ ]
219
219
You can’t perform that action at this time.
0 commit comments