You might also be talking about writing to the UART RX characteristic ("6e400002-b5a3-f393-e0a9-e50e24dcca9e")...
If that's the case then you're writing direct into the Bangle's REPL by default. So if you write JS followed by a newline then it'll just get executed. If you want to avoid that then you can move the REPL out the way, but I'd recommend just creating your own characteristic with:
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.
You might also be talking about writing to the UART RX characteristic (
"6e400002-b5a3-f393-e0a9-e50e24dcca9e"
)...If that's the case then you're writing direct into the Bangle's REPL by default. So if you write JS followed by a newline then it'll just get executed. If you want to avoid that then you can move the REPL out the way, but I'd recommend just creating your own characteristic with:
https://www.espruino.com/Reference#l_NRF_setServices