Created
February 19, 2022 14:00
-
-
Save chico/a1711b26604cfda1c119b740325af1ea to your computer and use it in GitHub Desktop.
Joke in zx
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
#!/usr/bin/env zx | |
const url = "https://sv443.net/jokeapi/v2/joke/Programming?type=single"; | |
const res = await fetch(url); | |
console.log((await res.json()).joke); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment