• ...js is first parsed and jit'ed, and only after it made it syntactically through, it starts to execute... at least what my gut had do accept... and yes, I had a bit a similar idea, because when you then look in (some) browser debugger walking step by step, you see the vars already defined even though you r programm pointer is not there yet / has not passed the var blaBla =... yet.

    I saw this pattern quite frequently in some code... and it did not feel right to me, becuase it assumes that walking through on load happens, which does not happen in Espruino.

    My other half gut - no a bit Espruino trained - also tells me when done this way, the function is created all over again... since Espruino runs/interprets of the source...

    @Gorden is frank enough that I ran into the woods again... (would not be the first time) - but every time I learn something. Over time I hope to stay better in the middle of the road...

About

Avatar for allObjects @allObjects started