title: Why do I get an error when trying to console log my $.each
body: <p>Sorry im new to jquery I usually use php/html. Can you tell why my code wont console log the VAR values. I am building an array from my vars when looping through them. I get the error Uncaught ReferenceError: $ is not defined.</p>
  
  <p><a href="https://jsfiddle.net/9y4ejfse/" rel="nofollow">Fiddle</a></p>
  
  <pre><code>    var string1 = "tes£$%t";
      var string2 = "test";
      var string3 = "test";
      var string4 = "test";
  
      var check_fields = [string1, string2, string3, string4];
  
      $.each(check_fields, function(index, value) {
  
          if (value.replace(/^[a-z\d\-_\s]+$/i, "") != string) {
          console.log(value);
  
          }
  
      });
  </code></pre>