Hi Guys,
Im working on a learning for fun project but now I'm stuck and I have googled my fingers off for a solution.
The scenario is this, I want to display an array of strings, word for word in the same space:
I can upload a text file and populate an array where each word becomes an array object. I have successfully printed the whole array to a div.
Now, I want to take the Array of strings and display each word from the array in the same field. I want it to work like a gif where each picture is a word from the array.
I can probably go with a foreach loop with a callbackfunction. It might work with a loop and a if statement where I check if the word is shown and if accepted remove and run the same if statement again.
Well this is where I've got stuck, what should I look in to so that I can figure this one out?
How would you do it? :)
Stay safe!