Thanks for taking the time to rework this code.
Thanks for the comments. I learned a lot.
Now for the hard part applying it all.
WebIDE doesn't flag the extra comma you mentioned.
I've been wondering if this forum is the right place to post code that I've been working on?
I would like to think it's useful to others and that feedback such as yours would improve the code and instruct others. All the reference documents can't replace the experience of writing code and tracking down the gotchas and occasional bugs.
Would GitHub be a better place?
Perhaps for longer projects that start small and evolve over 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.
Thanks for taking the time to rework this code.
Thanks for the comments. I learned a lot.
Now for the hard part applying it all.
WebIDE doesn't flag the extra comma you mentioned.
I've been wondering if this forum is the right place to post code that I've been working on?
I would like to think it's useful to others and that feedback such as yours would improve the code and instruct others. All the reference documents can't replace the experience of writing code and tracking down the gotchas and occasional bugs.
Would GitHub be a better place?
Perhaps for longer projects that start small and evolve over time?