From adcf848a3d89b2dbc3675976d5f1f5284f86f39e Mon Sep 17 00:00:00 2001 From: Vincent Ramiere Date: Tue, 19 Oct 2021 12:23:37 +0200 Subject: [PATCH] modif films js --- scripts/films.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);