
E-commerce product page challenge hub sass
Design comparison
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@YuliaLantzberg
Hi Erick. Your page is working perfectly and everything looking great. Just maybe a bit higher, so scroll is not comfortable for this page I think. It's hard to read code as it's a mix of English and another language. The thing that I could notice is, it seems you have a repeating code in mundacaImg and ativo functions. So, you can distinguish it into a separate function. Also, it seems like that will be a better use of switch rather than if else for better readability (but it's rather personal preference). And even better to use the loop, so it can to shorten the code pretty much. Hope it makes sense.
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