b) avoid using 'const', and c) define functions via let, so that nothing is global and therefore (from what I'm understanding) still held in memory even when not in the clock app?
I would probably just go with using let for most things. If you want to you can learn about the difference of declaring variables with var, let and const (and declaring variables without any of them). But I mostly just go with let.
Thank you so much! Fast load! That's the term! Awesome. I really appreciate the guidance and the resources. I hope I can offer something interesting to the community with time. :)
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.
Hi, nice to see you here! Your way here is similar to mine :)
Just in case you didn't open it yet: https://forum.espruino.com/conversations/341830/#comment15028140
The tutorials linked on that thread are very helpful when starting out.
Not important. I'd almost advice against it to start with. What it does is allow fastloading, described here: https://www.espruino.com/Bangle.js+Fast+Load
I would probably just go with using
let
for most things. If you want to you can learn about the difference of declaring variables withvar
,let
andconst
(and declaring variables without any of them). But I mostly just go withlet
.Looking forward to see your watch face!