const url = "http://localhost/p20/get.php" fetch(url) .then(response => response.json()) .then(data => { console.log(data) })