Skip to content

Instantly share code, notes, and snippets.

@scheakur
Created January 11, 2013 14:22
Show Gist options
  • Save scheakur/4510991 to your computer and use it in GitHub Desktop.
Save scheakur/4510991 to your computer and use it in GitHub Desktop.
function foo() {
console.log('foo');
}
var bar = function () {
console.log('bar');
};
console.log(foo.toSource());
console.log(bar.toSource());
console.log(foo.toString());
console.log(bar.toString());
function foo() {console.log("foo");}
(function () {console.log("bar");})
function foo() {
console.log("foo");
}
function () {
console.log("bar");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment