but there is no reason espruino on some device would work in same way.
If its not a javascript standard then we can forget about it. I thought it might had been a standard cos it affects the flow of code and thus the output of scripts if one were to copy paste from different environments.
If its not a javascript standard then we can forget about it.
Did you try to save it to flash and reboot? Did you try to define it inside of function? Did you try it e.g. in node.js console? Can you point me to 'javascript standard' that would backup your expectations?
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.
If its not a javascript standard then we can forget about it. I thought it might had been a standard cos it affects the flow of code and thus the output of scripts if one were to copy paste from different environments.