Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix set-timeout max-delay section #34211

Merged
Prev Previous commit
Next Next commit
Update files/en-us/web/api/settimeout/index.md
  • Loading branch information
sideshowbarker committed Jun 17, 2024
commit 8b5cfe9c022d690623582a181da24703c4aa6cb2
2 changes: 1 addition & 1 deletion files/en-us/web/api/settimeout/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ overflow when using delays larger than 2,147,483,647 ms (about 24.8 days). So fo
setTimeout(() => console.log("hi!"), 2 ** 32 - 5000);
```

…results in the timeout being executed immediately (since `2**32 - 5000` overflows to a negative number), while the following example:
…results in the timeout being executed immediately (since `2**32 - 5000` overflows to a negative number), while the following code:

sideshowbarker marked this conversation as resolved.
Show resolved Hide resolved
```js
setTimeout(() => console.log("hi!"), 2 ** 32 + 5000);
Expand Down