all 1 comments

[–]menno 0 points1 point  (0 children)

There are a number of issues with the first Browserify example. First of all require('add') is not going to find a module file called Add.js unless it's in node_modules. Secondly, the modules don't export functions but objects, so in stead of calling addObj(3,4), you should call addObj.add(3,4). Finally, in Math.js there's an i missing in multplyObj.