function fetchData(obj) {
    var data = {
        desc: obj.weather[0].description,
        temp: obj.main.temp,
        conditions: obj.weather.main,
        humid: obj.main.humidity,
        wind: obj.wind.speed,
        pressure: obj.main.pressure
    }
    return data
}
//Function gets data from given object in this case it is JSON object from API
Function gets data from given object in this case it is JSON object from API
Function gets data from given object in this case it is JSON object from API
function fetchData(obj) {
    var data = {
        desc: obj.weather[0].description,
        temp: obj.main.temp,
        conditions: obj.weather.main,
        humid: obj.main.humidity,
        wind: obj.wind.speed,
        pressure: obj.main.pressure
    }
    return data
}
function fetchData ( obj ) { var data = { desc : obj . weather [ 0 ] . description , temp : obj . main . temp , conditions : obj . weather . main , humid : obj . main . humidity , wind : obj . wind . speed , pressure : obj . main . pressure } return data }
Function gets data from given object in this case it is JSON object from API
Function gets data from given object in this case it is JSON object from API