Skip to content

[beta] Fatal typo in challengeSeed for "Functional Programming: Return Part of an Array Using the Slice Method" #13165

@Greenheart

Description

@Greenheart

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.

Metadata

Metadata

Assignees

Labels

scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions