Yes, E.on('init'...) is handy if you're copying and pasting code or writing libraries because if you do it twice, both bits of code get run. If you're actually fiddling with code using the left-hand side of the IDE then onInit can be easier - or you can do what I'd suggested above as well.
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,
E.on('init'...)
is handy if you're copying and pasting code or writing libraries because if you do it twice, both bits of code get run. If you're actually fiddling with code using the left-hand side of the IDE then onInit can be easier - or you can do what I'd suggested above as well.