Question: File should be saved as quote.js 1 3 . 4 LAB: Quote web API ( XMLHttpRequest ) In this lab, you will use a web

File should be saved as quote.js 13.4 LAB: Quote web API (XMLHttpRequest) In this lab, you will use a web API to fetch and display quotes on a selected topic, as shown below. Notable Quotes Select a topic: How many quotes? 31. Two things are infinite: the universe and human stupidity; and l'm not sure about the universe. - Albert Einstein 2. Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. - Groucho Marx 3. I want my children to have all the things I couldn't afford. Then I want to move in with them. - Phyllis Diller Quote web API A quote web API returns a collection of randomly selected quotes related to a given topic. The API supports two query string parameters: - topic-Specifies the requested topic. Valid topics are love, motivational, wisdom, and humor. - count - Specifies the number of quotes requested and must be a number from 1 to 5. Ex: The API request: https://wp. zybooks. com/quotes .php?topic=love \delta count -3 returns 3 quotes about love, formatted in JSON: If an error message is received, the error message should be displayed in the div . Ex: Topic 'success' not found / div

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!