Nalini1998 / Project_Public

MIT License
2 stars 0 forks source link

How could you access the second item, ‘Lion’, in the following code block? #543

Closed Nalini1998 closed 1 year ago

Nalini1998 commented 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]

Nalini1998 commented 1 year ago

I chose C. animalArray[1]