assets/script.js
// searchRequested - when user searches for a city, request weather and store searched city
when user searches for a city, request weather and store searched city
when user searches for a city request weather and store searched city
function searchRequested (e) {
    e.preventDefault();
    if(cityEl.val() == "") {
        alert("Please enter a city");
        return;
    }
    currentCity = cityEl.val();
    currentCity = capitalize(currentCity);
    requestWeather(currentCity);
}
function searchRequested ( e ) { e . preventDefault ( ) ; if ( cityEl . val ( ) == "" ) { alert ( "Please enter a city" ) ; return ; } currentCity = cityEl . val ( ) ; currentCity = capitalize ( currentCity ) ; requestWeather ( currentCity ) ; }
searchRequested - when user searches for a city, request weather and store searched city
searchRequested - when user searches for a city request weather and store searched city
// if nothing is entered, exit function // do something here to get an error