There is no global variable store on Bangle. The only way to persist a value across loading one app to another is to write what you want to share to a json file. This is fairly easy to do. Looking at any app that has a settings file will show you how to do this. You can then load your state back into the app when it starts up. The other way is to make a widget that stays loaded but again widgets get started and stopped so need to save any state or variables they want to persist across reloads.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There is no global variable store on Bangle. The only way to persist a value across loading one app to another is to write what you want to share to a json file. This is fairly easy to do. Looking at any app that has a settings file will show you how to do this. You can then load your state back into the app when it starts up. The other way is to make a widget that stays loaded but again widgets get started and stopped so need to save any state or variables they want to persist across reloads.