I don`t know what is wrong 4/8 SOLVED

var friends = new Object();
friends.bill = new Object();
friends.steve = new Object();
bill.firstName = "Bill";
bill.lastName = "Rogerson";
bill.number = "06954848521";
steve.firstName = "Steve";
steve.lastName = "Karlayle";
steve.number = "04535385423";

I don`t know what is wrong with my code.

Oops, try again. It looks like your friends don't have the firstName property.


In order to fill your objects you'd need to prefix friends e.g.

friends.bill.firstName = "Bill"

otherwise this will be assumed to be a completely seperate object.


Make sure to add all the requests (firstName, lastName and number).

Try this one:

var friends = {};
friends.bill = {
    firstName: "Bill",
    lastName: "Gates",
    number: "(400) 222-2222",
    city: "Seatle"
friends.steve = {
    firstName: "Steve",
    lastName: "Jobs",
    number: "(300) 111-1111",
    city: "San Francisco"


Thx this worked for me :grinning:


Thx for the code, but i i have already used similar method in python, so i wanted to try faster and new method. Anyway thank you!