Advice Generator App JSON API

Solution retrospective
I would like feedback regarding my javascript code - if there is room for simplifying it any more? Same goes for my fetch code - i think i have the bare minimum for it to work but i am open to hearing feedback/opinions on what other properties i could add
Also, is the way i am capturing the html element and replacing the content via ".textContent" best practice for the challenge objective from the code snippet below:
document.querySelector(".advice_number").textContent = "Advice #" + adviceData.id;
document.querySelector(".advice_content").textContent = "\"" + adviceData.advice + "\"";
Thanks
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Andrew Saganda's solution.
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