2 votes

print array every given time

I have an array, and I want each element to come out every X time, but I can't do it, I get the whole array directly

I understood that element = a letter and iterates, but I get everything directly, how would I do to go from 1 to 1?


Adrián Points 2335

You could make use of the setTimeout method that evaluates the expression after the time you specify:


With your code, it would be as follows:


HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by: