Codington
0 of 8 problems solved • 0%

Exercise prompt

Read the First Item

An array index selects an item by its position, starting at 0.

Example

const cities = ["Lund", "Umeå"]; console.log(cities[0]); // Output: // Lund
  • cities[0] reads the first item, "Lund".
  • cities[1] would read the second item, "Umeå".

Your task

Read the first value from fruits into firstFruit and display First: apple.