A simple JavaScript project that generates and displays a random joke when a button is clicked. The project also provides the category of the joke retrieved from an API.
Hosted Link: https://eclectic-empanada-8406df.netlify.app/
- Clicking the "Get Joke" button fetches and displays a random joke.
- The category of the joke is displayed along with the joke itself.
To get started with the project, follow these steps:
-
Clone this repository to your local machine using: git clone https://github.com/suryaspandey/Random-Joke-Generator/
-
Open the
index.html
file in your browser to interact with the random joke generator.
- Open the project in your browser.
- Click the "Get Joke" button to fetch and display a random joke along with its category.
HTML, CSS, JavaScript
The project utilizes the Random Joke API to retrieve random jokes and their categories.
For more details on the API usage and endpoints, refer to the API Documentation.