Arrays keep related values in order and let code read values by index.

Arrays

arrays.js
const scores = [82, 91, 76];
const bonus = ;
const firstScore = scores[0];
const adjustedScore = scores[1] + bonus;

console.log("first=" + firstScore);
console.log("adjusted=" + adjustedScore);
const scores = [82, 91, 76];
const bonus = ;
const firstScore = scores[0];
const adjustedScore = scores[1] + bonus;

console.log("first=" + firstScore);
console.log("adjusted=" + adjustedScore);
const scores = [82, 91, 76];
const bonus = ;
const firstScore = scores[0];
const adjustedScore = scores[1] + bonus;

console.log("first=" + firstScore);
console.log("adjusted=" + adjustedScore);
array index Array indexes start at zero, so `scores[0]` reads the first value.