What is wrong with my code?


I'm pretty confused. Can someone tell me what's wrong with my code??

var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "757-399-0020",
address: ["1911 Cloncurry Rd", "Norfolk", "VA", "23505"]
steve: {
firstName: "Steve",
lastName: "Jobs",
number: "434-399-0020",
address:["585 Green St", "San Francisco", "CA", "94133"]

var list = function(friends) {
for (var stuff in friends) {

var search = function(friends) {
for (var name in friends) {
if (name === firstName) {
else {
console.log("no matches")


Semi colons are needed after console.logs....

Also, are you sure you're supposed to print [friends]?


I'm not sure you can put the objects bill and steve inside your friend object like that. I had the three separate and used friends.bill and friends.steve for the other two objects- Also check out all your commas and semicolons.