There is a way, yes - you can use getters and setters :) Just use Object.defineProperty to create the variable, then add the getter and setter functions that you want... http://www.espruino.com/Reference#l_Object_defineProperty
Object.defineProperty
@Gordon 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.
There is a way, yes - you can use getters and setters :) Just use
Object.defineProperty
to create the variable, then add the getter and setter functions that you want... http://www.espruino.com/Reference#l_Object_defineProperty