title: What's the substitute for jQuery's each() function in JavaScript?
body: <p>In jQuery we have a function each like this</p>
  
  <pre><code>$('button').each(function(i) {
    $('button').eq(i).css('background', 'red');
  });
  </code></pre>
  
  <p>How can we replace this code with plain JavaScript?</p>