title: Get Request and Return Value in a Function
body: <p>For some reason, "p" returns as undefined. How would I make it return the array?</p>
  
  <pre><code>function doT() {
      var pe;
      $.get("https://www.google.com", function(data) { 
      pe = ["a", "b", "c"]; 
      });
      return pe;
  }
  
  var p = doT();
  setTimeout(function() { console.log(p.length); }, 1200);
  </code></pre>