im getting the module error for when i try to use export function on my js code.
export function startup() { let text = ""; // Add SYSTEM_values properties for (let i = 0; i < Object.keys(SYSTEM_values).length; i++) { const key = Object.keys(SYSTEM_values)[i]; const value = Object.values(SYSTEM_values)[i]; text += `\n ${key} : ${value}`; } // Add GAME_SETUP properties for (let i = 0; i < Object.keys(GAME_SETUP).length; i++) { const key = Object.keys(GAME_SETUP)[i]; const value = Object.values(GAME_SETUP)[i]; text += `\n ${key} : ${value}`; } console.log(text); return text; }
i have tried as many of teh js tutorials i could find for the export function including the ad numbers things however when put into practice this is not working
i am doing a simple
localVars.Variable1 = startup()
and not getting any return from it with and without the export function (the export function gives me a module error)
Develop games in your browser. Powerful, performant & highly capable.
this has been fixed, i was confused by the different ways js files are presented