Flexbox, SASS, JavaScript

Solution retrospective
Can anyone tell me how I can restrict my code JavaScript? 😐
I wanted to put the alerts inside a function and call them once, but I couldn't because I call them individually for each index number. I don't know if I've made myself clear.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Alessio'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