I think this is solved.
In the module file:
function Date() { // Constructor code } exports.constructor=Date;
In the referring file
var Date=require("Date.js").constructor; var d1=new Date(); var d2=new Date(2014,10,1,12,0,0,0);
@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.
I think this is solved.
In the module file:
In the referring file