Javascript experiment help


on my picture from line 16 down, it keeps telling me that pets.push isn't a function. how come? what I'm i doing doing?


One thing I should mention is that when you use a parameter in the function, treat it like any other variable and don't put quotes around it, or you will literally add "petName" to the array.


I removed the quotations the second time around and still gave me the same result, pets.push is not a function.


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