Can't run javascript code?


#1

I am trying to run some simple javascript code in a .js file but i can’t… I am new here and new to javascript so I appreciate any help.

Here’s what I get

Important: use process.env.PORT as the port and process.env.IP as the host in your scripts!

Here is my code

var friends= new Object();

friends.steve = new Object();

friends.steve.firstName=‘Steve’;
friends.steve.lastName=‘Gonzalez’;
friends.steve.number=‘34452-7643’;
friends.steve.address=[‘one muk wa’, ‘california’, ‘91345’];

friends.bill= new Object();
friends.bill.firstName=‘Bill’;
friends.bill.lastName=‘Rodgers’;
friends.bill.number=‘Verse342345’;
friends.bill.address=[‘two muk wa’, ‘Alabama’, ‘12345’];

var list=function(parameter){
for(var i in friends){
console.log();
}

}
var search=function(name){
for(var i in friends){
if(friends[i].firstName===name){
console.log(friends[i]);
return friends[i];
}
}

}
name=‘Steve’;
search(name);