문제 1. 어레이에 마지막 아이템 “Zebra” 제거하기 ```javascript= animals.pop() console.log(animals) ``` 문제 2. 주어진 어레이에 “Dog” 추가하기 ```javascript= animals.push("Dog") console.log(animals) ``` 문제 3. 주어진 어레이에 “Mosquito”,“Mouse”,“Mule” 추가하기 ```javascript= animals.push("Mosquito", "Mouse", "Mule") console.log(animals) ``` 문제 4. 해당 어레이에는 "Human"이 있는가? ```javascript= console.log(animals.includes("Human")) // false ``` 문제 5. 해당 어레이에는 “Cat” 이 있는가? ```javascript= console.log(animals.includes("Cat")) // true ``` 문제 6. "Red deer"을 "Deer"로 바꾸시오 ```javascript= animals = animals.map(animal => animal === "Red deer" ? "Deer" : animal); console.log(animals) ``` 문제 7. "Spider"부터 3개의 아이템을 기존 어레이에서 제거하시오 ```javascript= let index = animals.indexOf("Spider") if (index !== -1) { animals.splice(index, 3) } console.log(animals) ``` 문제 8. "Tiger"부터 그 이후의 값을 제거하시오 (Tiger 포함임) ```javascript= let index = animals.indexOf("Tiger") if (index !== -1) { animals.splice(index) } console.log(animals) ``` 문제 9. "B"로 시작되는 아이템인 "Baboon"부터 "Bison"까지 가져와 새로운 어레이에 저장하시오 ```javascript= let startIndex = animals.indexOf("Baboon") let endIndex = animals.indexOf("Bison") let animalsB = animals.slice(startIndex, endIndex+1) console.log(animalsB) ```