title: Separate arrays from main script file
body: <p>I'm working on a Javascript code that generates random text from smaller sets of strings. The problem is that to make the code easy to read and to expand, I definitely have to use one line for each string variables.</p>
  
  <p>Something like this, very broadly.</p>
  
  <pre><code>var array = [
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  "text",
  ...
  ]
  
  var array_b = [
  //(the same again)
  ]
  
  var result = array[math.floor(math.random())] + " " + array_b[math.floor(math.random())] 
  </code></pre>
  
  <p>Needless to say, it's quite uncomfortable. Not impossible to get used to, obviously; but if it's possible, I'd get rid of those long arrays.</p>
  
  <p>Is there a way for it? Putting them into a different file, calling them from another script of another page maybe? Or anything?</p>