-
Thanks for the feature link. Shame no1 linked to it (and I wasn't able to find it) when I was asking about which version of javascript Espruino is based on. Maybe I was looking on bangle documentation only.
My code snippet is abit miss leading as its from a typescript file not a direct javascript file. I am compiling it down to es5 when building. I should probably check what typescript is doing with default params when the target output is es5.
The main concern is as Gordon says, not that it isn't supported, but that no error is fired.
-
Shame no1 linked to it (and I wasn't able to find it) when I was asking about which version of javascript Espruino is based on.
You got that link right here https://forum.espruino.com/conversations/388506/#17058616 when you asked :-)
It breaks because Espruino doesn't support default parameter values,
round(6800971.33999999985, 2)
works though.