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