.then(response => response.json())
.then(data => {
// Extract location from data object
const { country_name, location } = data;
console.log(The phone number is located in ${country_name}, ${location});
})
.catch(error => console.log(error));
Ohk... Thanks
Обсуждают сегодня