I am calling some JSON results which lists a bunch of actors in an array named 'cast'. I am calling the first item from that list with this JS...
let movieCredits = document.getElementById("movieCredits");
movieCredits.innerHTML = out.credits.cast[0].name;
And displaying them in a div like this...
<div id="movieCredits"></div>
I need to list the first 5 results (not just the first). Is their a simple way to do this?