.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));
What seems to be the problem??
For me it's the lack of formatting
Ohk... So what do I need to do??
Обсуждают сегодня