/*const NOM = document.getElementsByClassName('nom'); const PRENOM = document.getElementsByClassName('prenom'); const IDENTIFIANT = document.getElementsByClassName('identifiant'); const EMAIL = document.getElementsByClassName('email'); const AVATAR = document.getElementsByClassName('avatar');*/ const MEMBER = document.getElementById('personne'); <<<<<<< HEAD console.log(MEMBER); ======= const BUTTON = document.getElementById ('page2'); >>>>>>> c7bfce2711271bd6a05a3de8ee1bef5309fb0f4e const API_URL = "https://reqres.in/api/users?page=1"; fetch(API_URL) .then((response) => { console.log(response); return response.json() }) .then(responsFormat => { console.log(responsFormat); for(let index = 0; index <6; index++){ console.log(responsFormat.data[index]); const PERSONNE = responsFormat.data[index]; console.log(PERSONNE); MEMBER.innerHTML +=`
${PERSONNE.last_name}
${PERSONNE.first_name}
${PERSONNE.id}
${PERSONNE.email}
${PERSONNE.last_name}
${PERSONNE.first_name}
${PERSONNE.id}
${PERSONNE.email}