I'm trying to make an array that has data stored in itself, and then I'd like to request the data by just calling an users their id myarray[userId].language
.
This is the code I'm using but how can I make it so myId actually becomes someones id and not just a string?
var myId = 62;
var users = [];
users.push({myId:{ //myId should be 62
language:"Dutch",
born:1999
}});