#Is there a better way to make global variables?
9 messages · Page 1 of 1 (latest)
Have you even tried to look for the error you get before asking?
Well, this is how I use it:
global.demo = 'This can be anything'
console.log(global.demo)
I just know it works 
Feel free to experiment if needed.
you just add property to global object
Last I use global, was to set options depending on the OS.