title: Difference between $.getScript() and $.get()
body: <p>I am trying to understand what are the differences between <code>$.getScript</code> function in jQuery and the <code>$.get</code>. </p>
  
  <p>According to the documentation:
  <a href="http://api.jquery.com/jQuery.get/" rel="noreferrer">http://api.jquery.com/jQuery.get/</a>
  and
  <a href="http://api.jquery.com/jQuery.getScript/" rel="noreferrer">http://api.jquery.com/jQuery.getScript/</a></p>
  
  <p>It gave me the feeling that with the <code>$.getScript</code> you can send data to the server (as with the <code>$.get</code> function) but you can't get data from the server (which you can with the <code>$.get</code> function). But it shows in the documentation of <code>$.getScript</code>, some lines below in the first example, that you can get also data with the line <code>console.log(data); //data returned</code>. </p>
  
  <p>So what is the differences? Is it that with <code>$.getScript</code> you can call only js scripts and with <code>$.get</code> you can call whatever file? What are the restrictions / benefits of using one function instead of the other?</p>