Is there a way to add an element to an array and then modify it later on?
//Create a new object
var ob = new User({login:"Max", age:22});
//Array of existing elements
var users = array[..] //assume the length is 5
//Add the new object to the array
users.push(ob);
//Update the object's data and reflect the changes in the array element (save data to server, retrieve ID of saved element)
ob.age = 33;
What would be the best approach to achieve this?