As @HughB says, all RAM is wiped between apps. Given the open nature of apps it makes it much harder to get in the situation where one rouge app can make your watch unusable.
There is a E.on('kill', ...) event that you can use to write the current state of your app into before everything shuts down, so there's no need to write to files all the time - just when the app is closed.
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.
As @HughB says, all RAM is wiped between apps. Given the open nature of apps it makes it much harder to get in the situation where one rouge app can make your watch unusable.
There is a
E.on('kill', ...)
event that you can use to write the current state of your app into before everything shuts down, so there's no need to write to files all the time - just when the app is closed.