Is there an array, how can you derive values from it one by one when clicked?
const arr = ['Ваш', 'вопрос','слишком','общий']; window.onclick = e => console.log(arr.shift());
Source: https://ru.stackoverflow.com/questions/820160/More articles:PHP array_slice () why order is indicated by 1 more?How to use half items in the bootstrap grid?Incorrectly compared values in JSWhy insertBefore swaps elements before conditions are setCount the number of lines of sql query in WordPressInfinite loop when sending JSON with response.getWriter (). Write (JSON);Align the beginning of the lines verticallyShould I handle exceptions in nested methods if there is a try catch in the calling method?Print the unique values of the intersection of setsStop the work of a third-party service?All Articles