This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// final code for openweather.com app | |
// ********************************** | |
searchData = async () => { | |
// API call | |
let data = await fetch(link); | |
console.log('inside API'); | |
const res = await data.json(); | |
this.parseChecker(res); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const apiCallArr = [ | |
{"coord":{"lon":-43.21,"lat":-22.9}, | |
"sys":{"type":1,"id":8429,"message":0.0055,"country":"BR","sunrise":1558516909,"sunset":1558556248}, | |
"weather":[{"id":721,"main":"Haze","description":"haze","icon":"50d"}], | |
"main":{"temp":28.98,"pressure":1013,"humidity":70,"temp_min":28.89,"temp_max":29}, | |
"visibility":5000, | |
"wind":{"speed":1.5,"deg":40}, | |
"clouds":{"all":20},"dt":1558544075, | |
"id":3451190, | |
"name":"Rio de Janeiro"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-06-01T14:43:49.371Z","extensionVersion":"v3.4.3"} |