There's similar on Espruino:
Eg:
function foo(d) { console.log(d); } Serial1.on("data", foo); Serial1.removeListener("data", foo);
@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's similar on Espruino:
Eg: