Replies: 1 comment
-
Ahh, yes - Sorry, I think you've hit: espruino/Espruino#2206 If you do But now you're in this position where changing There's a bit of info in that bug above, but you're right with "Espruino needs to be "small and simple"" - the issue is that in Espruino we'd have to have to make |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I suspect this is a general Espruino thing, but I only own a Bangle, so I'm asking here.
When I run this code in Node.js or in a JS console in a browser, I get 0, 1 and 2:
However, it yields three 3's on a Bangle. By trial and error, I found that this works:
I'm fine with accepting that this should work like this, probably because the JS interpreter on Espruino needs to be "small and simple", but I'd love to see an explanation – why does this happen?
Beta Was this translation helpful? Give feedback.
All reactions