How can I toggle a class and change a data attribute from true to false using addEventListener in JavaScript?
i am trying to create a simple function where when a button is clicked it toggles a class and changes a data attribute from true to false. here is what i have so far; const hamburger = document.querySelector(".hamburger") const navigation…