Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Advice Generator | Sass + JS

@ChrisAndrewsDev

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey guys!

The finished solution gave me some issues, mainly to do with the offset button;

Is there a better way to implement that button offset compared to the hacky way I've done here?

Thanks in advance!!

Community feedback

@ChrisAndrewsDev

Posted

It turns out the API call isn't happening on first page load too! Any ideas?

0

@s0alken

Posted

@ChrisAndrewsDev Hello, it is because you are calling getQuote() only when the button is clicked, I called getQuote() in line 10 (just after the declaration) and it worked.

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord