Created
August 28, 2021 07:44
-
-
Save duyet/04fe68cc1ce7c82360354a90824a5edd 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
let resp = await fetch('http://wttr.in') | |
if (resp.ok) { | |
console.log(await resp.text()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment