Further to above - what mode are you saving in? It will also save the setTimeouts, and your code could re add them causing chaos!
Do a reset(1); to clear all the code and possible use the ide save in send feature. This saves to flash and restarts the code fresh each time.
@Wilberforce started
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.
Further to above - what mode are you saving in? It will also save the setTimeouts, and your code could re add them causing chaos!
Do a reset(1); to clear all the code and possible use the ide save in send feature. This saves to flash and restarts the code fresh each time.