Why doesn\'t this produce anything?
console.log(JSON.stringify(function(){console.log(\'foobar\');}));
yourFunctionName.toString(); will also stringify a function
yourFunctionName.toString();