Even this simple one doesn't seem to work and I have no earthly idea why. I'm trying to remove that class, but it doesn't really matter, because whatever I'm trying to do it's not working. I would like to know why.
Here's my css:
          <i onclick="removeClass()" class="fas fa-bars slide"></i>
Here's my JavaScript:
                 function removeClass() {
                 var icon = document.getElementsByClassName("slide");
                 element.classList.remove("fa-bars");
                 }
 
    