title: $(...).each is not a function
body: <p>I'm trying to get the text inside all <strong>h2</strong> tags on a page, using the web console.</p>
  
  <p>All I've found says to use each, I've tried </p>
  
  <pre><code>var anArray = [];
  
  $('h2').each( function(i,e) {
      anArray.push($(e).innerHTML);
  });
  </code></pre>
  
  <p>But it returns <code>TypeError: $(...).each</code> is not a function.</p>
  
  <p>I've also tried using </p>
  
  <pre><code>$.each('h2', function(i,e) {
          anArray.push($(e).innerHTML);
      });
  </code></pre>
  
  <p>But again, all I get is <code>TypeError: $.each</code> is not a function?</p>