Skip to content

Instantly share code, notes, and snippets.

@yeco
Forked from dandean/laughable.js
Created February 19, 2010 06:26
Show Gist options
  • Save yeco/308492 to your computer and use it in GitHub Desktop.
Save yeco/308492 to your computer and use it in GitHub Desktop.
function laugh()
{
return
{
haha: "ha!"
};
}
laugh();
// returns undefined
function laugh() {
return { haha: "ha!" };
}
laugh();
// returns Object: { haha: "ha!" }
function laugh()
{
return /*
*/{
haha: "ha!"
};
}
laugh();
// returns Object: { haha: "ha!" } in Chrome, just making it more confusing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment