I have an object and I wand to add more data to it.
Original object:
{type:"Fiat", model:"500", color:"white"};
New object: Added a boolean and a string
{type:"Fiat", model:"500", color:"white", used: false, plate:"ABC123" };
I can’t rebuild the object be cause I don’t know which data I’m getting to I’m just adding extra data.
I also need to substract data from the object.