Hacker News new | ask | show | jobs
by ryanf 5412 days ago
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".
1 comments

ah that's interesting thanks for the explanation