let response = await fetch(url1); console.log(response.status); if (response.status == 200) { let resJSON = await response.json(); console.log(resJSON); let data=resJSON; } else { console.log("ERROR"); }