title: How to reset global variable to be available in document.ready() Javascript
body: <p>I've been trying this for a while.  Although there are alot of similar questions on stack, none of them have seemed to work for me.  Here is my issue</p>
  
  <p>Here's my code and this was my latest attempt</p>
  
  <pre><code>var busWorkOrders;
  
  function jsonBusWorkOrders() {
      busWorkOrders = "New Value";
  }
  </code></pre>
  
  <p>How can busWorkOrders new value of "New Value" be accessed outside of the function jsonBusWorkOrders().</p>
  
  <p>I have also tried <a href="https://stackoverflow.com/questions/10872006/how-do-i-change-the-value-of-a-global-variable-inside-of-a-function">How do I change the value of a global variable inside of a function</a></p>
  
  <p>Any help would be appreciated.</p>