I am unable to understand the working of the call-backs for the below codes:
http.createServer(function(request,response){ . . . });
Another example could be :
navigator.geolocation.getCurrentPosition(function(position){. . .});
I am unable to understand where are the request,response and position popping up from in such kind of call-back functions.
Could somebody give a simple general example where the call-back functions are called with parameters and are in the above format.(I am just confused with the style in which the call-back functions have been called with parameters).