const apiData = () => {
fetch(API_URL)
.then((res) => {
return res.json()
}).then((data) => {
fetchedData(data)
})
}
fetchedData = (apiData) => {
console.log(apiData)
}
const apiData = () => {
fetch(API_URL)
.then((res) => {
return res.json()
}).then((data) => {
fetchedData(data)
})
}
fetchedData = (apiData) => {
console.log(apiData)
}