var user = [{
name: ''
}];
user[0].name = 'Alex';
console.log(user[0].name);
var user = [{
name: ''
}];
user[1].name = 'Alex';
console.log(user[1].name);
var game = {
users: [{}]
}
game.users.push({});
game.users[0].name = 'Alex';
game.users[1].name = 'Jhon';
console.log(game.users[0].name);
console.log(game.users[1].name);
Alex
Jhon