-
Notifications
You must be signed in to change notification settings - Fork 60
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
base: main
Are you sure you want to change the base?
AnJu Hyppolite #20
Conversation
anju.js
Outdated
@@ -0,0 +1,21 @@ | |||
const quoteOfTheDay = document.querySelector("#quote-of-the-day"); | |||
fetch("https://favqs.com/api/qotd") |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
No description provided.