lu
(lu)
#1
Now that we have this call, let’s add our function, let’s call it wd from
weather data, and get it with a console.log.
We can see in the console we have now a bunch of data we can use.
Let’s say we want to display the current location, the current weather
description, the temperature and a nice icon to reflect the weather. Let’s
create some variables for that.
For the var currentLocation = wd.name; we can see what value to give from
the data in the console.
For example for the location the data is name, so will give for
currentLocation variable equal to wd our function .name