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

Async and Await: Add link to try...catch #28872

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

c8in4
Copy link
Contributor

@c8in4 c8in4 commented Sep 27, 2024

Because

Unclear/missing introduction to try...catch.

This PR

Issue

Closes #28866

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project curriculum contributing guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section

Rephrase the try catch paragraph and add a link to the try catch
docs ought to make a clearer introduction.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch
@github-actions github-actions bot added the Content: JavaScript Involves the JavaScript course label Sep 27, 2024
@c8in4 c8in4 changed the title Update async_and_await.md Async and Await: Add link to try...catch Sep 27, 2024
@MaoShizhong MaoShizhong merged commit 8bfdf2a into TheOdinProject:main Sep 27, 2024
3 checks passed
@MaoShizhong
Copy link
Contributor

MaoShizhong commented Sep 27, 2024

Quick note - in the future, as per our contributing guide, you're going to want to create a new branch off main for your PR. All commits for that PR go in that branch. That way, if you need to work on a second PR before that one's merged, you can checkout back to main, sync it, then make a new branch for the new PR so changes there won't contaminate the other branch and vice versa.

Also it means you won't ruin your main branch if you pull updates from it because you won't have local changes lying around causing conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content: JavaScript Involves the JavaScript course
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asynchronous JavaScript and APIs: Expand/clarify try...catch
2 participants