Skip to content

Instantly share code, notes, and snippets.

@rlemon
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlemon/9220762 to your computer and use it in GitHub Desktop.
Save rlemon/9220762 to your computer and use it in GitHub Desktop.

#poll

What do you prefer to read:

A:

function foo() { return 1; }

var foo = foo();

or

B:

var foo = foo();

function foo() { return 1; }

Please comment.

@eternalruler
Copy link

A; the order of declarations let's me know that function foo(){...} is no longer accessible and var foo has overwritten it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment