function showSavedCities(weather) {
    console.log(weather);
    savedCitiesEl.innerHTML = '';
    if (weather) {
        for (let i = 0; i < weather.length; i++) {
            var savedCity = weather[i].name;
            $('#saved-cities').append(
                $('<div/>')
                    .addClass("col-sm-12 mt-3")
                    .append(
                        $('<button/>')
                            .addClass("btn btn-secondary text-dark")
                            .text(savedCity)
                    )
            )
        }
    }
}
//show buttons which represent saved cities
show buttons which represent saved cities
show buttons which represent saved cities
function showSavedCities(weather) {
    console.log(weather);
    savedCitiesEl.innerHTML = '';
    if (weather) {
        for (let i = 0; i < weather.length; i++) {
            var savedCity = weather[i].name;
            $('#saved-cities').append(
                $('<div/>')
                    .addClass("col-sm-12 mt-3")
                    .append(
                        $('<button/>')
                            .addClass("btn btn-secondary text-dark")
                            .text(savedCity)
                    )
            )
        }
    }
}
function showSavedCities ( weather ) { console . log ( weather ) ; savedCitiesEl . innerHTML = '' ; if ( weather ) { for ( let i = 0 ; i < weather . length ; i ++ ) { var savedCity = weather [ i ] . name ; $ ( '#saved-cities' ) . append ( $ ( '<div/>' ) . addClass ( "col-sm-12 mt-3" ) . append ( $ ( '<button/>' ) . addClass ( "btn btn-secondary text-dark" ) . text ( savedCity ) ) ) } } }
show buttons which represent saved cities
show buttons which represent saved cities