title: Getting variable value from external JavaScript file in jQuery $(document).ready(function(){});
body: <p>I have defined on external JavaSsript file which contains one variable such as the following</p>
  
  <pre><code>var demo='Hello'". 
  </code></pre>
  
  <p>I want to use this variable's value in jQuery's <code>$(document).ready()</code> event. How can I accomplish this?</p>