Skip to content

Instantly share code, notes, and snippets.

View degizmo's full-sized avatar

Adam degizmo

View GitHub Profile
@degizmo
degizmo / CS-Scope-Problem.coffee
Created February 16, 2011 03:59
coffeescript variable scoping problems
outer = 1
changeNumbers = ->
inner = -1
outer = 10
inner = changeNumbers()
console.log(outer)
#output = 10
#result out, although outside of the inner scope is altered, which is not prefered