When I attempt this, the HMTL page only displays the last object, instead of all the objects.
Here is my JavaScript file
var family = {
aaron: {
n
Well, you've got a couple problems there ( tag without a parent or tag, among others)...but I'd say the primary error is that you are replacing each subsequent output with each assignment to innerHTML.
Solution: assign a compiled array to innerHTML (using join to include spaces between the values)
var list = function(family) {
var names = [];
for (var prop in family) {
names.push(prop.name);
}
document.getElementById('aaron-family').innerHTML = names.join(' ');
}
list(family);