const button = document.getElementById("getcucc") button.addEventListener("click", () =>{ let xhr = new XMLHttpRequest() xhr.onreadystatechange = () =>{ if (xhr.readyState === 4 && xhr.status === 200){ let adat = JSON.parse(xhr.responseText) console.log(adat) let tohtml = "" for (let user of adat.data){ tohtml += `