-
-
Save nprail/c5bd1d458a9664010f233c006397d686 to your computer and use it in GitHub Desktop.
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 apiKey = 'your api key'; | |
const fetchData = async () => { | |
const res = await fetch(`https://api.openweathermap.org/data/2.5/weather?q=London,uk&APPID=${apiKey}`); | |
const json = await res.json(); | |
console.log(json); | |
} | |
fetchData(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment