What is a call back function? What does it mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is a call back function? What does it mean?

9th Nov 2017, 1:21 AM
Abdoulaye Seck
Abdoulaye Seck - avatar
5 Answers
+ 4
It usually helps to learn about closures and then really learn callbacks to better understand how they work. In the abstract sense it is much easier to learn how to use them though. Basically a callback function is a function that is passed as an argument to another function. in which that function utilizes the callback with the body of its own function. function sort(listToSort, compareFunction) { // compareFunction is used within sort to decide how to sort the list items };
9th Nov 2017, 1:54 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
get('/', function (req, res) { res.send (' thiebou djen nekh na') });
9th Jan 2018, 7:57 PM
Alassane Seck
Alassane Seck - avatar
+ 1
thanks a lot very helpful
9th Nov 2017, 1:38 AM
Abdoulaye Seck
Abdoulaye Seck - avatar
+ 1
lol Azo
15th Jan 2018, 12:28 PM
Abdoulaye Seck
Abdoulaye Seck - avatar