Skip to content

AnJu Hyppolite#20

Open
AnJuHyppolite wants to merge 25 commits intojoinpursuit:mainfrom
AnJuHyppolite:main
Open

AnJu Hyppolite#20
AnJuHyppolite wants to merge 25 commits intojoinpursuit:mainfrom
AnJuHyppolite:main

Conversation

@AnJuHyppolite
Copy link
Copy Markdown

No description provided.

anju.js Outdated
@@ -0,0 +1,21 @@
const quoteOfTheDay = document.querySelector("#quote-of-the-day");
fetch("https://favqs.com/api/qotd")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wrap this in a function you'll be able to call it over and over again.

anju.js Outdated
quoteOfTheDay.appendChild(li);
})
.catch((err) => {
console.log(err);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you want to do something different besides log the err to the console. Like inform the user to try again later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants