new weather app
// optimised this switch statement with one line /* switching images switch (data.weather[0].main) { case 'Clouds': weatherIcon.src = "icons/Clouds.png"; break; case 'Rain': weatherIcon.src = "icons/Rain.png"; break; case 'Snow': weatherIcon.src = "icons/Snow.png"; break; case 'Mist': weatherIcon.src = "icons/Mist.png"; break; case 'Drizzle': weatherIcon.src = "icons/Drizzle.png"; break; case 'Clear': weatherIcon.src = "icons/Clear.png"; break; default: weatherIcon.src = "icons/Clear.png"; break; }*/
// going to fix geopositioning to automatically capture weather using location **feature was succesfully implemented
// added an input suggestion api with mapbox, so now it can implement autocomplete