Open TheFakeHamma opened 2 months ago
Description: Update the script.js file to fetch quotes from the backend API instead of using mockup data.
script.js
Steps:
mockQuotes
getMockQuote
getQuote
http://localhost:3000/quote
#quote
#new-quote
Description:
Update the
script.js
file to fetch quotes from the backend API instead of using mockup data.Steps:
mockQuotes
array and thegetMockQuote
function.getQuote
to fetch a quote fromhttp://localhost:3000/quote
.#quote
element with the fetched quote.#new-quote
button to callgetQuote
.getQuote
when the page loads to display an initial quote.