title: How could I use the variables from a remotely stored JavaScript file within the function of another JavaScript file?
body: <p>Currently, I'm trying to take an array from a JavaScript file stored on a web page (ex. "website.com/javascript.js") and run it through a function stored in a JavaScript file I have made for a website. This is for a game.</p>
  
  <p>Previously, I was attempting to import both .js files into the HTML file and use the array from the website as an input for my own JavaScript file, but I couldn't seem to do this. </p>
  
  <p>I simply couldn't find the answer online (or didn't know how to phrase the question right). If I need to import anything for the purpose of doing this, could you tell me what to import? Thank you!</p>
  
  <p>Here's the code I'm working on. Sorry for the very novice code, I haven't worked much in JavaScript.</p>
  
  <pre><code>function makeBracket(players){
      var resultString;
      for (var i = 0; i &lt; players.length; i++){
         var assassinName = players[i][1];
         var targetCode = players[i][4];
         for(var j=0;j&lt;players.length;j++){
              var code = players[j][2];
              if(code == targetCode){
                  var targetName = players[j][1];
                  document.write(assassinName + " -&gt; " + targetName + "&lt;br&gt;");
         }
      }
  }
  </code></pre>