example.js 261 B

12345678910111213141516
  1. exports.add = function(a, b, fn){
  2. fn(null, a + b);
  3. };
  4. exports.sub = function(a, b, fn){
  5. fn(null, a - b);
  6. };
  7. exports.uppercase = function(str, fn){
  8. fn(null, str.toUpperCase());
  9. };
  10. exports.lowercase = function(str, fn){
  11. fn(null, str.toLowerCase());
  12. };