Skip to content

Fix inaccurate callback explanation #62381

@zxc-w

Description

@zxc-w

Describe the Issue

In JavaScript, a callback function is a function that is passed as an argument to another function and is executed after the main function has finished its execution.

I think this isn't always true.

MDN definition:

A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.

If edits are needed, the following files should be updated:

Affected Page

https://www.freecodecamp.org/learn/full-stack-developer/lecture-working-with-higher-order-functions-and-callbacks/what-is-a-callback-function-and-how-does-it-work-with-the-foreach-method

Your code

N/A

Expected behavior

Fix the definition if required.

Screenshots

No response

System

N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.status: waiting triageThis issue needs help from moderators and users to reproduce and confirm its validity and fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions