---
# System prepended metadata

title: 0210 과제2

---

```
//1 
animals.pop();

//2
animals.push("Dog");
console.log(animals);

//3
animals.push("Mosquito","Mouse","Mule");
console.log(animals);

//4
animals.includes("Human");
//5
animals.includes("Cat");

// 6
console.log(animals.indexOf("Red deer"));
animals[77]="Deer";
console.log(animals[77]);

//7
console.log(animals.indexOf("Spider"));
let index=animals.indexOf("Spider")
animals.splice(index, 3);
console.log(animals);

//8
let index_tiger=animals.indexOf("Tiger");
animals.splice(index_tiger,);
console.log(animals);

// 9 
let index_baboon=animals.indexOf("Baboon");
let index_bison=animals.indexOf("Bison");
let animals_b=animals.slice(index_baboon,index_bison+1);
console.log(animals_b)
```