Skip to content

techieshruti/random_Joke_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Late Night Joke Generator 🎭

A fun and interactive JavaScript project that fetches random jokes from an API and presents them like a late-night comedy show — complete with a spotlight effect, dramatic punchline reveal, and even a laugh track!


Features

  • Fetches random jokes using the Official Joke API
  • Shows the joke setup first, then reveals the punchline after a short pause
  • Plays a laugh sound to enhance the experience
  • Clean dark theme with spotlight-style container
  • Responsive design with smooth transitions

What I Learned

This small project helped me understand and implement:

  • JavaScript basics: variables, functions, DOM manipulation
  • Async JavaScript: using fetch(), .then(), and how APIs work
  • Error handling with .catch() for graceful fallback
  • DOM manipulation with innerHTML, event listeners
  • How to work with audio in JS
  • CSS styling for animation, transitions, spotlight effect
  • Working in GitHub Codespaces and hosting assets (like laugh.mp3)

Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6)
  • Fetch API
  • GitHub Codespaces

How to Run Locally

  1. Clone the repo
  2. Upload laugh.mp3 in the same folder as your index.html
  3. Open index.html in browser
  4. Click the button to get a fresh joke and laugh along!

Credits


License

This project is open-source. Feel free to improve, remix, or laugh harder!


Made with ❤️ by Shruti Chandra

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published