async function vreme(){
let stanje = await fetch("api.openweathermap.org/data/2.5/weather?lat=42.82865&lon=20.46023&appid=ad163d4c65378315beb9a137e07daf73&units=metric")
let prognoza = await stanje.json()
return prognoza
}
console.log(vreme())
console.log
shows object promise. A friend of mine said that it’s because the API is in JSON but I don’t understand where I went wrong.