New course! Every coder should learn Generative AI!
Try a free lesson+ 1
https://code.sololearn.com/WImGt52slLPu/?ref=app
I made here a carousel, maybe have a look to understand.
Btw I created classes, added the elements.
Then I get an element and made something like this:
document.getElementById("text").innerHTML=`${agg[x].name}`;
And at the onclick of the button:
x += 1;
This will change to the next element :)
Hope this helps :)