Use the given array and iterate over it:
- using
for
loop - using
.forEach()
method and show the index of each element next to the element itself.
const fruits = ['apple', 'plum', 'strawberries'];
// for loop
// ... your code here
// .forEach() method showing the index of each element
// ... your code here