function weatherUI(weatherData) {
    var temp, humidity, wind, pressure, city, conditions, cityFirstLetter, cityLength;

    temp = document.querySelector('.weather__temp');
    conditions = document.querySelector('.weather__conditions');
    humidity = document.querySelector('.indicators__humid');
    wind = document.querySelector('.indicators__wind');
    pressure = document.querySelector('.indicators__pressure');
    city = document.querySelector('.info__city');

    cityFirstLetter = weatherData.city.substr(0, 1).toUpperCase();
    cityLength = weatherData.city.substr(1, weatherData.city.length).toLowerCase();

    city.textContent = cityFirstLetter + cityLength;
    temp.textContent = weatherData.temperature;
    conditions.textContent = weatherData.conditions;
    humidity.textContent = 'Humidity: ' + weatherData.humidity + ' %';
    wind.textContent = 'Wind: ' + weatherData.wind + ' km/h';
    pressure.textContent = 'Pressure: ' + weatherData.pressure + ' hPa';
}
//Function is responsible for displaying content in the UI
Function is responsible for displaying content in the UI
Function is responsible for displaying content in the UI
function weatherUI(weatherData) {
    var temp, humidity, wind, pressure, city, conditions, cityFirstLetter, cityLength;
    temp = document.querySelector('.weather__temp');
    conditions = document.querySelector('.weather__conditions');
    humidity = document.querySelector('.indicators__humid');
    wind = document.querySelector('.indicators__wind');
    pressure = document.querySelector('.indicators__pressure');
    city = document.querySelector('.info__city');
    cityFirstLetter = weatherData.city.substr(0, 1).toUpperCase();
    cityLength = weatherData.city.substr(1, weatherData.city.length).toLowerCase();
    city.textContent = cityFirstLetter + cityLength;
    temp.textContent = weatherData.temperature;
    conditions.textContent = weatherData.conditions;
    humidity.textContent = 'Humidity: ' + weatherData.humidity + ' %';
    wind.textContent = 'Wind: ' + weatherData.wind + ' km/h';
    pressure.textContent = 'Pressure: ' + weatherData.pressure + ' hPa';
}
function weatherUI ( weatherData ) { var temp , humidity , wind , pressure , city , conditions , cityFirstLetter , cityLength ; temp = document . querySelector ( '.weather__temp' ) ; conditions = document . querySelector ( '.weather__conditions' ) ; humidity = document . querySelector ( '.indicators__humid' ) ; wind = document . querySelector ( '.indicators__wind' ) ; pressure = document . querySelector ( '.indicators__pressure' ) ; city = document . querySelector ( '.info__city' ) ; cityFirstLetter = weatherData . city . substr ( 0 , 1 ) . toUpperCase ( ) ; cityLength = weatherData . city . substr ( 1 , weatherData . city . length ) . toLowerCase ( ) ; city . textContent = cityFirstLetter + cityLength ; temp . textContent = weatherData . temperature ; conditions . textContent = weatherData . conditions ; humidity . textContent = 'Humidity: ' + weatherData . humidity + ' %' ; wind . textContent = 'Wind: ' + weatherData . wind + ' km/h' ; pressure . textContent = 'Pressure: ' + weatherData . pressure + ' hPa' ; }
Function is responsible for displaying content in the UI
Function is responsible for displaying content in the UI