Skip to content

Instantly share code, notes, and snippets.

@duyet
Created August 28, 2021 07:44
Show Gist options
  • Save duyet/04fe68cc1ce7c82360354a90824a5edd to your computer and use it in GitHub Desktop.
Save duyet/04fe68cc1ce7c82360354a90824a5edd to your computer and use it in GitHub Desktop.
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