Yes, unfortunately Espruino doesn't do Function Hoisting.
Due to the way Espruino executes code it parses as
it executes. Function Hoisting wasn't implemented as it would require
two passes, which would drastically slow down execution.
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.
Yes, unfortunately Espruino doesn't do Function Hoisting.
Due to the way Espruino executes code it parses as
it executes. Function Hoisting wasn't implemented as it would require
two passes, which would drastically slow down execution.