Oops, try again. Did you create a function called add?


#1
Oops, try again.
Did you create a function called add?

function add (firstName, lastName, email, phoneNumber) {
contacts[contacts.length] = {
firstName: firstName,
lastName: lastName,
phoneNumber: phoneNumber,
email: email
};
};
add ( "Test" ,"Niss", "dick@niss.com", "(218)827-1234" );


#2

Try this instead.

var add = function (firstName, lastName, email, phoneNumber){
.... the rest of your code is correct.

Also, I have yet to do it myself but, you should test your function as is inside another editor to see if it works. I plan on doing it a little later. Let me know if you want to share results.