Made a weather dashboard using HTML, CSS and JS.
It shows current Weather conditions, temperature, humidity and wind speed , and in addition to that it also shows forecast of 5 days by fetching the data from OpenWeatherMap API according to the city entered in the search box.
- Used Async JS concept
- Fetch Method
Used fetch method to get the data from OpenWeatherMap API.
- await
This is used to delay the execution of the const response variable so that the api data is loaded first and then after the processing of data starts and
var data variable so that the processes regarding the json object stored in the data does not get executed before the loading of object in var data
- Fetch Method