Error messages? Try refreshing the page


I didn't see anything on this whilst looking for help on 7. Search for a friend, but I was having problems with it not finding Steve, then asking me whether I needed to create a function when I clearly had. All sorts of errors came up every time.

Then, in an act of sheer desperation, I ctrl+F5'd the browser (Edge). The whole thing then just worked straight away the moment I submitted the code. How bl**dy frustrating. So, if you're sure you've got it right and the damn thing still doesn't work, I'd refresh the page.

Passing it on, in case it's not been mentioned already!


Can you show your code @boardrunner63263?


var friends = new Object();
friends.bill = new Object();
friends.steve = new Object();

friends.bill.firstName = "Bill";
friends.bill.lastName = "Gates";
friends.bill.number = "(206) 555-5555";
friends.bill.address = ["999", "Letsbe Avenue", "Copped"];

friends.steve.firstName = "Steve";
friends.steve.lastName = "Jobs";
friends.steve.number = "(206) 123-1234";
friends.steve.address = ["222", "Letsbe Avenue", "Copped"];

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


var search = function(name) {
for (var key in friends) {
if (friends[key].firstName === name) {
return friends[key];