This says it best. Set globals like so:
global['foo'] = 'bar';
Turn around and use them like this:
console.log("the global is: " + global['foo']);
No comments:
Post a Comment