let buttons = document.querySelectorAll('#btn');
let counter = 0;
let arrInk = 0;
buttons.forEach((btn) => {
btn.addEventListener('click', (e) => {
switch(e.target.dataset.action) {
case 'understand': {
counter++;
arrInk++;
paragraph.innerHTML = arrayOfStorage[arrInk]
console.log(counter)
break
}
case 'know': {
counter += 2;
arrInk++;
paragraph.innerHTML = arrayOfStorage[arrInk]
break
}
case 'skip': {
arrInk++;
paragraph.innerHTML = arrayOfStorage[arrInk]
break
}
}
})
})