+ 2
What is a call back function? What does it mean?
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
};
+ 2
get('/', function (req, res) {
res.send (' thiebou djen nekh na')
});
+ 1
thanks a lot very helpful
+ 1
lol Azo