Closed Nalini1998 closed 1 year ago
How could you access the second item, ‘Lion’, in the following code block?
const animalArray = ['Sloth', 'Lion', 'Chipmunk'];
A. animalArray['Lion'];
B. animalArray[2]
C. animalArray[1]
I chose C. animalArray[1]
How could you access the second item, ‘Lion’, in the following code block?
A. animalArray['Lion'];
B. animalArray[2]
C. animalArray[1]