Suppose now we have an array of correct answers:
let answers = [
'answer 1',
'answer 2',
'answer 3',
];
This means that we will no longer store the answers in the data- attributes of the inputs:
<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>
Make it so that when the button is clicked, checking the answers is performed.