SyntaxFix
Write A Post
Hire A Developer
Questions
You can just use the global object.
var X = ['a', 'b', 'c']; global.x = X; console.log(x); //['a', 'b', 'c']