diff --git a/scripts/films.js b/scripts/films.js index e197e91..3bbd7b5 100644 --- a/scripts/films.js +++ b/scripts/films.js @@ -8,7 +8,7 @@ fetch(API_URL) return reponse.json() }) .then(reponseFormat => { - for(let index = 0; index <6; index++){ + for(let index = 0; index < reponseFormat.results.length; index++){ //console.log(reponseFormat.results[index]); const data = reponseFormat.results[index]; console.log(data);