Design comparison
Solution retrospective
What are you most proud of, and what would you do differently next time?
Hi here is my solution for Time-tracking-dashboard using HTML, CSS, Grid and Flex, JS, mobile-first.
What challenges did you encounter, and how did you overcome them?
It was to extract data with fetch API and display it in the correct item.
fetch('./data.json').then( res => res.json())
.then( (data) => {
array = data;
});
What specific areas of your project would you like help with?
I used .forEach
to iterate through the data and set it.
previous.forEach( (item, index) => {
item.innerText = `Last Week - ${array[index].timeframes.daily.previous}hrs`;
});
Can you tell me how to improve the code.
Thanks.
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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