[Solved] how to display all elements of an array in javascript [closed]
As you wanted to display 3 elements from the array each time and when the last element is displayed you want to repeat the process again you are suppose to use setInterval() to call the function after a specified time continuously and reset the index to 0 immediately after the last element is displayed. Else … Read more