title: Equivalent of $(this) in native javascript
body: <p>I wanted to add and event listener to a button and I am still relatively new on coding purely on javascript, so I don't know what are the native equivalent of <code>$this</code></p>
  
  <p>in my code</p>
  
  <pre><code>// the markup
  
  &lt;ul class="menu"&gt;
     &lt;li&gt;&lt;a href="#" data-something="value"&gt;text&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#" data-something="value2"&gt;text2&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  var menu = document.querySelector(".menu");
  menu.addEventListener("click", function(){
      // console.log $(this).val
      // what I wanted is to get that data-attribute of the clicked item
  });
  </code></pre>