Javascript experiment help


#1

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?


#2

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.


#3

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


#4

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