You are reading a single comment by @Robin and its replies.
Click here to read the full conversation.
-
Mon 2019.07.30
'I'm on fw 1.93 if that matters'
Ahhhhh, finally an easy one. Glad you included that tid bit.
http://www.espruino.com/Features
See section under ES6 when classes were introduced.
Flash away . . . .
So I'm creating some modules for my project, one of them being a class. This class is in the Modules folder, and is being require'd in. Here's the opening code snippet:
...and of course I'm doing this in the main code:
When I run the code, I get the 'constructor' is not defined error. I'm on fw 1.93 if that matters. I could use a little help.