In javascript it\'s very popular for libraries/frameworks to let us define a callback function for post-processing of data.
eg.
load(\"5\", function(
function(callback,argumentArray) {
var result = callback.apply(this,argumentArray);
}
Points to be noted:
this can be null. In that case if this is used in the callback implementation then it would point to the Global object.argumentArray is actually a JavaScript Array of arguments required by the callback method.