UNPKG

math_example_cvazquezm

Version:

An example of creating a package

16 lines (13 loc) 234 B
var call_counter = require('./call_counter'); function add(x,y){ call_counter(); return x + y; } function subtract(x,y){ call_counter(); return x-y; } module.exports = { addition : add, subtraction : subtract }