Test with answers in an array in JavaScript

Suppose now we have an array of correct answers:

javascriptlet answers = [
  'answer 1',
  'answer 2',
  'answer 3',
];

This means that we will no longer store the answers in the data- attributes of the inputs:

html<div id="test">
  <div>
    <p>question 1?</p>
    <input>
  </div>
  <div>
    <p>question 2?</p>
    <input>
  </div>
  <div>
    <p>question 3?</p>
    <input>
  </div>
  
  <button id="button">check answers</button>
</div>
Задание 1

Make it so that when the button is clicked, checking the answers is performed.