Yassine Ghezal• 870
@Ryusuke66
Posted
Congrats on finishing the challenge your solution looks great, one thing i found is when i reload the website the advice changes twice sometimes, what causes that is this code in your Javascript file:
window.onload = () => {
getAdvice();
}
it's not needed since the API changes the advice every 2 seconds, so you can remove it and it will fix the issue. Good luck and happy coding!
Marked as helpful
0