wikiti
4/17/2017 - 11:12 AM

Create a global variable

Create a global variable

# 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"