Putting all into onInit() can create issues with scopes of variables. If things are defined in onInit(), I always define the variable outside. That give me the options to go mixed - global and function local scoped references.
© Espruino, powered by microcosm.
Report a problem