Gordon, DrAzzy
Thanks. I got the require("http").. working
But how do I create a Date() type within a module which is accessible to users of the module using 'new'? So for example
require("date");
d=new Date();
I did have a reasonable look for any other file like this, didn't see one... maybe I missed it?
Martin
@mgg1010 started
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.
Gordon, DrAzzy
Thanks. I got the require("http").. working
But how do I create a Date() type within a module which is accessible to users of the module using 'new'? So for example
require("date");
d=new Date();
I did have a reasonable look for any other file like this, didn't see one... maybe I missed it?
Martin