Is there an array, how can you derive values ​​from it one by one when clicked?

  • Show the code to hear the answer. There are lots of options. - Alexxosipov

1 answer 1

const arr = ['Ваш', 'вопрос','слишком','общий']; window.onclick = e => console.log(arr.shift());