Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for ( let i = 0; carrot_count != i; carrot_count-- ) {
- setTimeout(function() {
- array[1].textContent = localStorage.getItem('carrot-count') - 1;
- }, 1000);
- }
- /*
- localStorage.getItem('carrot-count') = 16, функция срабатывает один раз и значение изменятся на 15, но мне нужно сделать так, чтобы оно доходило до 0.
- *
Advertisement
Add Comment
Please, Sign In to add comment