Navbar dropdowns plus hero using JS

Solution retrospective
Looking for opinions on how i implemented the nav dropdown with Javascript? Is there a better way with less code?
I received an HTML error that my div menu close in mobile isn't proper since i included it inside a ul parent and it would have to be an li however updating it to an li with the dev tools makes it lose it's js functionality somehow - any feedback would be appreciated
Thanks
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Andrew Saganda'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