It's very simple.
var storage = {};
storage.arrayname = [1, 2, 3];
alert(storage["arrayname"].join(','));
Polluting the global namespace is strongly discouraged. I would strongly advise you to refrain from using the window
object for this purpose. Read HERE for more details.