Function.prototype.constructor.toString = function() { return this(); } var greeting = function() { return "hello"; } alert( greeting + "!" );