Challenge return-part-of-an-array-using-the-slice-method has an issue.
function sliceArray(anim, beginSlice, endSlice) {
// Add your code below this line
return anim.slice(beginSlice, endSlice);
// Add your code above this line
}
var inputAnim = ["Cat", "Dog", "Tiger", "Zebra", "Ant"];
sliceArray(tempArray, 1, 3);
As the camper shouldn't have to modify code outside the comments, the undefined tempArr on the last line causes a fatal error.
I can fix this right away.