-
• #2
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. -
• #3
Oh, ok, thanks! Is that said somewhere in the docs?
-
• #4
One more question please :-) I don't understand why does the red led stay on with the script above, until I press the BTN or the first timeout times out?
-
• #5
Actually it looks like it wasn't (I think it's been mentioned in github/forum a bit) but as we now have http://www.espruino.com/Features I've added a specific mention of it (it'll go live in a few days).
-
• #6
Thanks, again, Mr. Williams!
This:
??