Skip to content

Change contradicting statement#3210

Merged
smith558 merged 2 commits intojavascript-tutorial:masterfrom
romanstetsyk:setTimeout
Feb 25, 2026
Merged

Change contradicting statement#3210
smith558 merged 2 commits intojavascript-tutorial:masterfrom
romanstetsyk:setTimeout

Conversation

@romanstetsyk
Copy link
Copy Markdown
Contributor

Contradicting statements:

  • The nested setTimeout guarantees the fixed delay.
  • all scheduling methods do not guarantee the exact delay

Fixes #3099

@smith558 smith558 self-assigned this Feb 14, 2024
@smith558 smith558 added the P1 High priority label Feb 14, 2024
@smith558 smith558 requested a review from Copilot February 25, 2026 10:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request resolves a documentation contradiction in the JavaScript tutorial about setTimeout and setInterval. The original text contained conflicting statements: one claiming nested setTimeout "guarantees" a fixed delay, while another stating that scheduling methods "do not guarantee" exact delays.

Changes:

  • Updated the statement about nested setTimeout to clarify it "ensures a minimum delay" rather than "guarantees the fixed delay", making it consistent with the later statement that scheduling methods don't guarantee exact delays

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@smith558 smith558 merged commit c0904ea into javascript-tutorial:master Feb 25, 2026
1 check passed
@smith558
Copy link
Copy Markdown
Member

Thank you for your contribution! 🙂 @romanstetsyk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potentially confusing statements

3 participants