Open TheFakeHamma opened 2 months ago
Description: Create a script.js file inside the frontend folder and add JavaScript to use mockup data for quotes.
script.js
frontend
Steps:
mockQuotes
#new-quote
getMockQuote
#quote
Description:
Create a
script.js
file inside thefrontend
folder and add JavaScript to use mockup data for quotes.Steps:
script.js
file.mockQuotes
with a few dummy quotes.#new-quote
button to call a functiongetMockQuote
.getMockQuote
function to randomly select a quote frommockQuotes
and display it in the#quote
element.getMockQuote
when the page loads to display an initial quote.