Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnJu Hyppolite #20

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

AnJu Hyppolite #20

wants to merge 25 commits into from

Conversation

AnJuHyppolite
Copy link

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
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
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