wikiti
4/17/2017 - 11:12 AM

Global variable in coffeescript

Create a global variable in coffeescript

# Use it in another file
console.debug global_foo
# Find the global scope
root = exports ? this

# Create the variable on the scope
root.global_foo = "Bar"