title: Get classList from event
body: <p>I have a simple JS event:</p>
  
  <pre><code>var changeAddress = document.getElementsByClassName('modal-open');
  
  if (changeAddress.length) {
      var a = 0;
      while (a &lt; changeAddress.length) {
          changeAddress[a].addEventListener('click', function () {
              console.log(this); // Here i want to get classList
              document.querySelector('.modal').removeAttribute('hidden');
          });
          a++;
      }
  }
  </code></pre>
  
  <p>How can I get classList from <code>this</code>?</p>
  
  <p>It's not necessary get it from <code>this</code> or throw <code>classList</code>. I just want to get all class names of element on which event is triggered. Thanks! </p>