title: How to get <a> innerText based on class name?
body: <p>Say I have: <code>&lt;a class="helloh" id="helloh"&gt;return this value&lt;/a&gt;</code></p>
  
  <p>Basically I want to get the innerText of <code>&lt;a&gt;</code> tag based on class name.</p>
  
  <p>The problem is when I try: <code>alert(document.getElementsByClassName("helloh").innerText);</code> it return <code>undefined</code> but when I try: <code>alert(document.getElementById("helloh").innerText);</code> it return me they actual value that I want.</p>