Dad Jokes Using API for Random Jokes
This is one of my first times using an API with JavaScrip, I have only done it mobile weather app with Java and Kotlin. Using the https://icanhazdadjoke.com I tried both fetch with .then and async await for HTTP Request/Responses just to get familiar with the concept of both. The object that is received is a JSON. I only take the joke from the object and put it in the middle of the div container. The whole process of sending request and receiving the joke is in a method. The button another joke has an event listener listeneing for click and then the method is called again for a new joke. The design is responsive made with:
- HTML
- CSS
- JavaScript
Other images of the project:
.png)
.png)
.png)
Comments
Post a Comment