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
Just you don't need to define function
html file:
var family = { aaron: { name: 'Aaron', age: 30 }, megan: { name: 'Megan', age: 40 }, aaliyah: { name: 'Aaliyah', age: 2 } } for (var prop in family) { document.getElementById('aaron-family').innerHTML += '' + prop + ''; }
Aaron's Test With Objects