title: How to get child element with getElementsByClassName?
body: <p>I've simple javascript to get it's child element with the getElementsByClassName but it's not working:</p>
  
  <pre><code>var parent = document.getElementsByClassName('parent');
  var child = parent.getElementsByClassName('child');
  child.style.color='red';
  </code></pre>
  
  <p>I've tried a lot and searched to get it but some answers with for loop I've found but I wanted to do it without loop. How can I do this?</p>