Question from the Javascript test

How to retrieve the second value from an array in Javascript

Hard

Consider the following code:

let fruits = ['apple', 'banana', 'cherry'];

How can you retrieve the second value from the fruits array?

Author: AxelStatus: PublishedQuestion passed 58 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!