Time tracking dashboard using fetch and JS for dynamic rendering

Solution retrospective
At first I hardcoded the activities in my HTML. After that I updated the project using fetchAPI to retrieve data.json then I populated the DOM with the activities using JavaScript.
What challenges did you encounter, and how did you overcome them?In the data.json
the Self Care title
is more than one word so I couldn't call directly the toLowerCase
function to convert the title for the proper class names. I solved it by introducing a function that changes the whitespaces for -
characters .
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Csaba Hell'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