Skip to content

fix(curriculum): add context for method chaining and this keyword#66937

Merged
majestic-owl448 merged 2 commits intofreeCodeCamp:mainfrom
lakshay122007:fix/method-chaining-context
Apr 15, 2026
Merged

fix(curriculum): add context for method chaining and this keyword#66937
majestic-owl448 merged 2 commits intofreeCodeCamp:mainfrom
lakshay122007:fix/method-chaining-context

Conversation

@lakshay122007
Copy link
Copy Markdown
Contributor

@lakshay122007 lakshay122007 commented Apr 14, 2026

Checklist:

Closes #66925

Description

The Method Chaining lesson introduces object-based chaining using this without prior context, which can confuse learners.

This PR adds a short explanation and example before the quiz section (as suggested) to clarify how method chaining works with objects and the role of this.

@lakshay122007 lakshay122007 requested review from a team as code owners April 14, 2026 15:10
@github-actions github-actions bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Apr 14, 2026
@Jeevankumar-s Jeevankumar-s added status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. js v9 cert This is for the JS V9 certification. labels Apr 15, 2026
Copy link
Copy Markdown
Member

@Jeevankumar-s Jeevankumar-s left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Copy link
Copy Markdown
Contributor

@majestic-owl448 majestic-owl448 left a comment

Choose a reason for hiding this comment

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

please do not use the same methods as in the quiz, create a different example please

Copy link
Copy Markdown
Contributor

@majestic-owl448 majestic-owl448 left a comment

Choose a reason for hiding this comment

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

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 enabled auto-merge (squash) April 15, 2026 13:08
@majestic-owl448 majestic-owl448 merged commit 37a2dc8 into freeCodeCamp:main Apr 15, 2026
11 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 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. status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Curriculum Context Gap: JavaScript- Method Chaining (Step 359) assumes knowledge of OOP and this

3 participants