Design comparison
SolutionDesign
Community feedback
- @ldgPosted over 1 year ago
Hi Ayodeji,
Really nice work on this challenge. One comment, I noticed that the hamburger menu didn't seem to work on smaller screens. I think the issue is that there is an extra comma in your callback arrow function, just after the parenthesis. I also noticed the eventListener was missing a semi-colon to close out the statement.
hamburgerIcon.addEventListener("click", (), => { navBar.classList.toggle("active"); })
I think this will fix it:
hamburgerIcon.addEventListener("click", () => { navBar.classList.toggle("active"); });
0@bant095Posted over 1 year ago@ldg
Thank you for the correction, I will adjust that
0
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