You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Is it actually as simple as:

    function myClass() {
        this.nextPresident = "Bozo the clown";
    }
    myClass.prototype.add = function(a,b) { return a+b; };
    myClass.prototype.getNextPresident = function() { return this.nextPresident; };
    exports myClass; // <------- Not valid JS?
    

    You actually want exports = myClass?

About

Avatar for Gordon @Gordon started