This function works for a single data item but it should keep refreshing every few seconds. How does this repeat?
async function get_iss() { const response = await fetch('https://api.wheretheiss.at/v1/satellites/25544'); const data = await response.json(); document.getElementById("ISSdata").innerHTML = data.altitude; Textbox1.value = data.longitude; Textbox2.value = data.latitude; } get_iss();>