One hour!we made a friend,i can't


#1

var add=function(firstName,lastName,phoneNumber,email){
contacts[contacts.length]={
firstName:firstName,
lastName:lastName,

    phoneNumber:phoneNumber,
    email:email
    }

};
add("apan","Johnson","456","546545");

list()

it shows that ReferenceError: apan is not defined


#2

I have tried it and it works. Please, share your full code.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.