Skip to content

fix(curriculum): allow arrow functions in factorial calculator lab - #69488

Closed
jacobptnguyen wants to merge 3 commits into
freeCodeCamp:mainfrom
jacobptnguyen:main
Closed

jacobptnguyen wants to merge 3 commits into
freeCodeCamp:mainfrom
jacobptnguyen:main

Conversation

@jacobptnguyen

Copy link
Copy Markdown
Contributor

Checklist:

Closes #69484

Replaced the factorialCalculator.toString() regex assertion (which only matched named function declarations) with assert.strictEqual(factorialCalculator.length, 1), so the arg-count hint passes for both function declarations and arrow function solutions.

Fixes freeCodeCamp#69469

- Lowercase "integrated development environment" in the definition sentence to match the lowercase form used in the three examples that follow
- Change "Perhaps some examples might be helpful." to "Some examples will help." to remove stacked hedging
- Remove the stray comma before "text and source code editor" in the VS Code description
- Replace "where" with "whereas" to correctly express contrast between code editors and IDEs
- Remove the incorrect hyphen in "fully-configured", since "fully" is an -ly adverb and shouldn't be hyphenated to the adjective it modifies
- Replace "multiple different" with "many" to remove the redundancy
Replaced the factorialCalculator.toString() regex assertion (which only matched named function declarations) with assert.strictEqual(factorialCalculator.length, 1), so the arg-count hint passes for both function declarations and arrow function solutions.
@jacobptnguyen
jacobptnguyen requested review from a team as code owners August 11, 2026 21:42
@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 Aug 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there,

Thanks for opening this pull request.

The automated checks found some issues:

Linked Issue: The linked issue has not been triaged yet, and a solution has not been agreed upon. Once the issue is open for contribution, you are welcome to update this pull request to reflect the issue consensus. Until then, we will not be able to review your pull request.


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

@imsomilg

Copy link
Copy Markdown
Member

Hi there,

Thanks for creating this pull request.

The linked issue has not been triaged yet, and a solution has not been agreed upon. Once the issue is open for contribution, you are welcome to update this pull request to reflect the issue consensus. Until the issue is open for contribution, we will not be able to review your pull request.

@imsomilg imsomilg closed this Aug 12, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

deprioritized PR reviews are deprioritized; lacks productive input and ignores codebase best practices. 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.

Factorial Calculator only accepts regular function

2 participants