NEED SOME HELP INPUTTING THIS CODE
"Using the global variable animalArray, write a function called addToArray that takes in the parameter a and pushes that to the end of animalArray."
Here is what I have so far, I need to push parameter "a" to the end of the animalArray string.
var animalArray = ["dog", "cat", "horse"];
var addToArray = ["a"] ; {
addToArray.push ;
}
Anything helps I have no idea what i'm doing wrong and i'm falling behind!