Making an Ajax call from the console, getting error $.ajax is not a function()
<p>I'm playing around with making an ajax call from my console to a local server but I'm getting an error:</p>

<pre><code>VM4460:1 Uncaught TypeError: $.ajax is not a function(…)
</code></pre>

<p>This is my code</p>

<pre><code>url = 'http://localhost:8080/testform?q=somethingnew1'
$.ajax({
  type: 'GET',
  url: url,
});
</code></pre>

<p>What am I doing wrong?</p>

<p>Edit - I realized what I did wrong. I was running the console on a page that didn't have jQuery running. When I switched to website that has jQuery loaded and ran the command it worked. Sorry for the confusion. </p>