for... in loop, "obj" ""?
- . . , , , , - ; , .
, , , .
, . , - , .
, , ?
, .
, obj?
console.log() , . ( ) , .
, ?
, . . .
?
, .
undefined?
i , , "contact1", "contact2", "contact3". name age, undefined.
"i" ?
i :
var obj = new TestApp.Contact(jsonUnstrung[i].name, jsonUnstrung[i].age);
, , TestApp.globalContactList.push(this); . , , :
for (var i in jsonUnstrung) {
var contact = jsonUnstrung[i];
var obj = new TestApp.Contact(contact.name, contact.age);
console.log(obj);
TestApp.globalContactList.push(obj);
}