title: How to assign variable to external array file?
body: <p>In a js script (part of a Githubpages project), I currently have a variable defined as an array: </p>
  
  <pre><code>var myArray= [
   'one string',
   'two string',
   'red string',
   'blue string',
  ];
  </code></pre>
  
  <p>The thing is, my real array declared as the variable's value is very long, with plenty of long strings. I want to put the array in a separate file and  still declare the variable as that array. Is there some way to do this by referencing the location of the file,</p>
  
  <p>Like,</p>
  
  <p>In folder "arrays", filename "dr.suess": </p>
  
  <pre><code>  [
    'one string',
    'two string',
    'red string',
    'blue string',
     ];
  </code></pre>
  
  <p>In my JavaScript:</p>
  
  <pre><code>var myArray = https://user.github.io/arrays/dr.suess
  </code></pre>
  
  <p>Or is this just not gonna work? Preferably an answer <strong>not</strong> with jQuery, cause I don't understand it. Thanks for the help!</p>