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

Responsive random advice generator

@Aysha-py

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


I tried to learn about Bootstrap as I had only used it occasionally without fully understanding it. In my project, I added the Bootstrap framework by including its CDN in my HTML file.

Apart from that, I used the built-in fetch function in JavaScript within an event listener. I'm not sure if this is considered a good practice, so any feedback would be appreciated.

Community feedback

Sandro 1,170

@sandro21-glitch

Posted

Hi There

including the Bootstrap framework via its CDN in your HTML file is a common and convenient way to add Bootstrap to your project. It allows you to access the Bootstrap styles and functionality without having to download and host the framework files yourself. This approach is widely used and generally considered a good practice.

As for using the built-in fetch function in JavaScript within an event listener, it's a valid approach for making HTTP requests and retrieving data from a server. The fetch function provides a modern and flexible way to work with asynchronous data fetching. It returns a Promise that resolves to the response from the server, which you can then handle accordingly.

0

@Aysha-py

Posted

@sandro21-glitch

Thank you, Sandro. Glad to know my approach is widely used and generally considered a good practice.

0

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