Skip to content

fix(curriculum): clarify async/await explanation in lecture content#66935

Merged
jdwilkin4 merged 1 commit intofreeCodeCamp:mainfrom
AyushK5ingh:issue#66932
Apr 14, 2026
Merged

fix(curriculum): clarify async/await explanation in lecture content#66935
jdwilkin4 merged 1 commit intofreeCodeCamp:mainfrom
AyushK5ingh:issue#66932

Conversation

@AyushK5ingh
Copy link
Copy Markdown
Contributor

@AyushK5ingh AyushK5ingh commented Apr 14, 2026

Description

Updates the async/await lecture to clarify where the await keyword can be used.

The original text stated that await can only be used inside an async function, which is incomplete. The corrected text also mentions that await can be used at the top level of module bodies.

Before:

Only inside an async function, you can use the await keyword, which allows you to wait for a Promise to resolve before moving on to the next line of code.

After:

The await keyword, which allows you to wait for a Promise to resolve before moving on to the next line of code, can only be used inside of asynchronous functions or the top level bodies of modules.

Checklist:

Closes #66932

@AyushK5ingh AyushK5ingh requested review from a team as code owners April 14, 2026 12:59
@github-actions github-actions bot added scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. deprioritized PR reviews are deprioritized; lacks productive input and ignores codebase best practices. labels Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Hi there,

Thanks for opening this pull request.

The automated checks found some issues:

Checklist: The PR description is missing the required checklist or some of its items are not completed:

  1. The Checklist: heading is present in the PR description.
  2. The checkbox items are ticked (changed from [ ] to [x]).
  3. You have actually completed the items in the checklist.

Please edit your PR description to include the following template with the checklist items completed.

Checklist:

<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [ ] I have read and followed the [contribution guidelines](https://contribute.freecodecamp.org).
- [ ] I have read and followed the [how to open a pull request guide](https://contribute.freecodecamp.org/how-to-open-a-pull-request/).
- [ ] My pull request targets the `main` branch of freeCodeCamp.
- [ ] I have tested these changes either locally on my machine, or GitHub Codespaces.

<!--If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.-->

Closes #XXXXX

<!-- Feel free to add any additional description of changes below this line -->

Join us in our chat room or our forum if you have any questions or need help with contributing.

@github-actions github-actions bot removed the deprioritized PR reviews are deprioritized; lacks productive input and ignores codebase best practices. label Apr 14, 2026
Copy link
Copy Markdown
Contributor

@jdwilkin4 jdwilkin4 left a comment

Choose a reason for hiding this comment

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

Congrats on your first contribution to our repository. 🎉
We look forward to future contributions. 👍

@jdwilkin4 jdwilkin4 added the js v9 cert This is for the JS V9 certification. label Apr 14, 2026
@jdwilkin4 jdwilkin4 enabled auto-merge (squash) April 14, 2026 16:27
@jdwilkin4 jdwilkin4 merged commit dabb661 into freeCodeCamp:main Apr 14, 2026
20 of 21 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

js v9 cert This is for the JS V9 certification. scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Async/Await lecture comment about where await is used

2 participants