Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ryanf
· 15y ago · 0 comments
CoffeeScript wraps its output in an anonymous function, so to create a global var you have to explicitly assign it as "window.varname" or, at the top level, "this.varname".
Comments
[–]
riffraff
15y ago
ah that's interesting thanks for the explanation