Test with answer options in an array in JavaScript

Let now we have an array in which the numbers of correct answers for each question are written:

let answers = [0, 1, 2];

That is, the first element of this array contains the number of the correct answer for the first question, the second element - for the second question, and so on.

Modify the code of the previous lesson, taking into account the described.

enru