All you need to do is a reset() then a save(). The Web IDE should do a reset before uploading code from the right-hand side though (unless you set it up not to).
If you just do save() then you're saving the current state of the interpreter, which is the state that it last loaded from flash, plus any extra functions you defined this time around.
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.
All you need to do is a
reset()
then asave()
. The Web IDE should do a reset before uploading code from the right-hand side though (unless you set it up not to).If you just do
save()
then you're saving the current state of the interpreter, which is the state that it last loaded from flash, plus any extra functions you defined this time around.