Skip to content

Instantly share code, notes, and snippets.

@monokrome
Created March 22, 2012 20:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monokrome/2163066 to your computer and use it in GitHub Desktop.
Save monokrome/2163066 to your computer and use it in GitHub Desktop.
attr = 0
something = (x) ->
attr = x
something 40
console.dir attr
# Output: 40
something = (x) ->
attr = x
attr = 0
something 40
console.dir attr
# Output: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment