I think my question already answered but i could not find the answer that would satisfy me.
Problem is that;
The code print "3" but i dont understand how can it be because firstly person assigned list[0] then i implement person.ID so which speciality of javascript does provide this.Can you explain me
var person = {};
person.name = "John";
person.surname = "Connor";
var list = [];
list [0] = person; //In here i did not generate ID
person.ID = 3;
console.log(list[0].ID);