title: How to get span tag parent class name in JavaScript?
body: <pre><code>&lt;div class="todo"&gt; &lt;h3&gt;Have to understand js DOM&lt;/h3&gt;
          &lt;div class="ed-btn"&gt;
            &lt;span id="delete" onclick="deleteTodo(event)"&gt;&lt;i class="far fa-trash-alt"&gt;&lt;/i&gt;&lt;/a&gt;
            &lt;/span&gt;`; &lt;/div&gt;
  
  const deleteTodo = event =&gt; {   console.log(event.currentTarget); };
  </code></pre>
  
  <p>by onclicking deleteTodo(event) i just found </p>
  
  <pre><code>      &lt;span id="delete" onclick="deleteTodo(event)"&gt;&lt;i class="far fa-trash-alt"&gt;&lt;/i&gt;&lt;/a&gt;
  </code></pre>
  
  <p>but How could i get the class 'todo' or the h3's inner content?</p>