title: Accessing JavaScript function variables outside of the function
body: <p>I apoligize for my newbness but I'm not clearly understanding how to access variables within a function outside of the function. I understand that you need to pass them some how but I'm not 100% sure on the whys and hows.</p>
  
  <p>Taking the below code for example, I want to use the <code>var degree</code> throughout the code outside of the function. How do I do it?</p>
  
  <pre><code>function DegreeToMil() 
  {
  
  //Degree's to Mils: 1 Degree = 17.777778 Mils
  
  var degree = 10;
  var mils = degree * 17.777778;
  
  return mils;
  
   }
  </code></pre>