Mi hanno una struttura simile alla seguente:Aggiornamento proprietà javascript dell'oggetto?
skillet.person = {
name: {
first: '',
last: ''
},
age: {
current: ''
},
birthday: {
day: '',
month: '',
year: ''
}
}
mi chiedevo come avrei aggiornare questi valori? Ad esempio, io ho risposto correttamente
skillet.person.name.push({ first: 'blah', last: 'ha'});
ma è sbagliato? Come posso risolvere questo?
MDN ha una grande esercitazione JavaScript, specialmente https://developer.mozilla.org/en/JavaScript/Guide/Working_with_Objects –