Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 28 / 11524%
Functions9/15

JS Callback Functions

Pass a function to another function — the foundation of async, events, and array methods.

caller (main)int x = 5;int y = 7;int s = sum(x, y);callee (sum)int sum(int a, int b) {return a + b;}call (a=5, b=7)return 12
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?