DEV Community

Nie
Nie

Posted on

Fetch Jokes story from Joke API

Fetch Jokes from https://icanhazdadjoke.com/api

Javascript:
Image description

Console:
Image description

I just learned it today so hopefully it can help someone. If there is mistake, please tell me so i can correct it.

Thanks for reading.
Have a nice coding day!!!

Top comments (1)

Collapse
 
trandainien profile image
Nie

Does anyone know what ~~~ headers: {accept: "application/json" } ~~~ do ??