Heres the code.
const users = [{
name: 'Homer',
role: 'clerk',
dob: '12/02/1988',
admin: false
},
{
name: 'Lisa',
role: 'staff',
dob: '01/30/1965',
admin: false
},
{
name: 'Marge',
role: 'associate',
dob: '09/10/1980',
admin: true
}];
I tried using console.log(users.name); to print out the names but if gives me Undefined. I'm having a hard time pulling any of the object properties and printing them out. Do I need to go within each individual object and add functions to call specific properties of each object?