Is there a way in MSFS to share a Global Variable between two JS files, in the same folder, without resorting to Lvars or Zvars
ie as what typically works in standard Javascript
file1.js:
var globalVar = ‘’, // The global variable
===================================
file2.js
var globalVar = require(./file1);
================
Maybe the file reference in the above is incorrect for the VFS ?