Return within switch statements are handled like a break (and do not return anything).
See the following example, with execution trace on Espruino and on node.js .
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.
Return within switch statements are handled like a break (and do not return anything).
See the following example, with execution trace on Espruino and on node.js .
on espruino, shows as
on node.js, shows as