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, powered by microcosm.
Report a problem