Skip to content

fix(curriculum): align callback review definitions - #71474

Merged
majestic-owl448 merged 1 commit into
freeCodeCamp:mainfrom
jerome-queck:fix/callback-review-definitions
Oct 31, 2026
Merged

majestic-owl448 merged 1 commit into
freeCodeCamp:mainfrom
jerome-queck:fix/callback-review-definitions

Conversation

@jerome-queck

@jerome-queck jerome-queck commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Checklist:

Closes #71473

The two reviews say callbacks run after the outer function finishes, which is incorrect for synchronous callbacks such as those passed to forEach. Both reviews now use the definition already present in the corresponding lecture.

This also restores the chapter-review correction from #64758 that was overwritten in #66056.

Validation:

  • The repository's challenge linter passes for both changed files, including through the pre-commit hook.
  • Both files parse successfully with the curriculum parser; comparing the parsed data before and after shows only the intended definition changes.
  • A Node.js reproduction confirms the forEach callbacks run before the method returns.
  • git diff --check passes.

This changes two prose lines. The full application and end-to-end suites were not run locally.

@jerome-queck
jerome-queck requested a review from a team as a code owner October 31, 2026 02:00
@github-actions github-actions Bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Oct 31, 2026
@majestic-owl448 majestic-owl448 added the js v9 cert This is for the JS V9 certification. label Oct 31, 2026
@majestic-owl448
majestic-owl448 enabled auto-merge (squash) October 31, 2026 10:48

@majestic-owl448 majestic-owl448 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @jerome-queck. Congrats on your first pull request (PR)! 🎉

Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝

@majestic-owl448
majestic-owl448 merged commit 9e9da57 into freeCodeCamp:main Oct 31, 2026
12 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 31, 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.

JavaScript reviews still say callbacks run after the outer function finishes

2 participants