Actions speak louder than words; I prefer to demonstrate with code:
//global variable
var siblings = [];
var rand = new Date().getTime();
siblings.push('uin_' + rand);
alert(siblings['uin_' + rand]); // undefined
Why is it coming up as undefined? My main goal is to create a global object that acts as a storage for information about other objects. Going back to my issue... I added the value, then tried to alert it but it's showing as undefined... why?