
Design comparison
Please log in to post a comment
Log in with GitHubCommunity feedback
- @telsabate-hub
Hi Anh!
You did really great here! I like how well-structured your SCSS code is. The page is also responsive so good job on that! :)
Just a couple of suggestions for your JS.
-
When calling the
populateDOM(allValidData, targetId)
, you don't need to pass the allValidData since you have declared it as a global variable. -
You could have directly updated the
innerHTML
insidecreateContainer
instead of having a separate functiondisplayContainers
.
Also, I think you missed out on updating the text
"Previous - "
when changing timeframes.Overall, you still did a nice job here and you were able to complete this project!
Happy coding! :)
Marked as helpful -
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