I just came over a an odd situation:
I have a structure myData
I can call myData.A1 as well as myData.A2 but of course myData.A 3 fails because of the space.
Is it possible that Espruino interpreter should reject attributes containing spaces in the name?
I believe it's still entirely valid JS...
You can just reference them with myData['A 3'] so it's not a big problem?
Correct, it is not a big problem. I didn't know JS was so permissive.
Thanks for quick reply, @Gordon!
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem