TheFakeHamma / random-quote-generator

Side project for fun
MIT License
0 stars 0 forks source link

Use Mockup Data for Quotes #4

Open TheFakeHamma opened 2 months ago

TheFakeHamma commented 2 months ago

Description:
Create a script.js file inside the frontend folder and add JavaScript to use mockup data for quotes.

Steps:

  1. Create a script.js file.
  2. Define an array mockQuotes with a few dummy quotes.
  3. Add an event listener to the #new-quote button to call a function getMockQuote.
  4. Implement the getMockQuote function to randomly select a quote from mockQuotes and display it in the #quote element.
  5. Call getMockQuote when the page loads to display an initial quote.