most JS interpreters scan ahead for new function definitions within its current scope
(function(){ console.log("level 1"); return lvl2(); function lvl2(){ console.log("level 2"); } })();
Espruino's JS does not
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.
most JS interpreters scan ahead for new function definitions within its current scope
Espruino's JS does not