ReferenceError: consol is not defined


#1

var bob = {
firstName: "Bob",
lastName: "Jones",
phoneNumber: "(650) 777-7777",
email: "bob.jones@example.com"
};

var mary = {
firstName: "Mary",
lastName: "Johnson",
phoneNumber: "(650) 888-8888",
email: "mary.johnson@example.com"
};

var contacts = [bob, mary];

// printPerson added here
var printPerson = function(person){
consol.log(person.firstName +" "+ person.lastName);
};
printPerson(contacts[0]);
printPerson (contacts [1]);


#2

on line 19 you have consol.log, it should be console.log


#3

thank you @stetim94 , it works with me :smile: