console.log javascript [Function]
If it's a user defined function you can use:
console.log(callback.toString());
Otherwise you'll just get something like [native code]
since built in functions are not written in JavaScript.
Example:
function x(){}// Prints "function x(){}"(function(callback){ console.log(callback.toString()); })(x);