Week 3 assessment

Checkpoint quiz

10 mixed-format questions — multiple choice, true/false, predict-the-output, identify-the-error, select-the-code, and scenarios. Review each explanation, score at least 70%, and retry as many times as you like.

Question 1 / 10Predict the output

What does this log?

const fruits = ["apple", "banana", "cherry"];
console.log(fruits[fruits.length - 1]);