title: Ajax GET request is success but the variable not set
body: <pre><code>this.encryptUserObject = function(userObj){
   var newpassword = [];
   var urlPost = '';
   console.log(password);
   urlPost = 'http:mysite.com/root/custome.svc/Encrypts'+ '/?' + "Phrase=test";
   $.ajax({
      url:urlPost,
      type:"GET",
      dataType:"json",
      contentType: "application/json",
      success: function(response){
  
          return response;
      },
      error:function(res){
          console.log("Bad thing happend! " + res.statusText);
      }
   });
  }
  </code></pre>
  
  <p>This is one of method in my class. <code>cosole.log</code> in <code>success</code> method is working, showing result (new password in encryption text), but the <code>newpassword</code> print in console <code>$.ajax</code> no value.</p>
  
  <p>Any idea what could be causing this.</p>