Skip to content

Commit

Permalink
chore: fix typo and a broken link (mdn#36201)
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 authored Oct 5, 2024
1 parent 1b45c29 commit 1cefd23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/window/setinterval/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ myArray.myMethod = function (sProperty) {
myArray.myMethod(); // prints "zero,one,two"
myArray.myMethod(1); // prints "one"
setTimeout(myArray.myMethod, 1000); // prints "[object Window]" after 1 second
setTimeout(myArray.myMethod, 1500, "1"); // prints "undefined" after 1,5 seconds
setTimeout(myArray.myMethod, 1500, "1"); // prints "undefined" after 1.5 seconds

// Passing the 'this' object with .call won't work
// because this will change the value of this inside setTimeout itself
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/workerglobalscope/setinterval/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ setInterval(func, delay, arg1, arg2, /* …, */ argN)
This syntax is _not recommended_ for the same reasons that make using {{jsxref("Global_Objects/eval", "eval()")}} a security risk.
- `delay` {{optional_inline}}
- : The time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function or code. Defaults to 0 if not specified.
See [Delay restrictions](#delay_restrictions) below for details on the permitted range of `delay` values.
See [Delay restrictions](/en-US/docs/Web/API/Window/setInterval#delay_restrictions) for details on the permitted range of `delay` values.
- `arg1`, …, `argN` {{optional_inline}}
- : Additional arguments which are passed through to the function specified by _func_ once the timer expires.

Expand Down

0 comments on commit 1cefd23

Please sign in to comment.