Through my coding journey, I crafted a for loop to showcase multiple entries stored within an array. Unexpectedly, the for loop only displays the final entry in the array as opposed to all elements from the beginning to the end.
for (var i = 0; i < roa.length; i++) {questionContentRoa = roa[i].questionContent, correctAnswerRoa = roa[i].correctAnswer } console.log(questionContentRoa, correctAnswerRoa);