Wie man ein Array aus einem anderen Skript in JS bekommt
// SCRIPT WHERE THE ARRAY IS
var yourArray;
export{yourArray/*, OtherThingsYouWannaExport*/}
// SCRIPT WHERE WE NEED THE ARRAY
import * as chooseName from './TheNameOfYourScriptFile.js'
chooseName.yourArray; // You can now access the array
McDown