Repositorio del curso CCOM4030 el semestre B91 del proyecto Paz para la Mujer

1234567891011121314151617181920
  1. var common = require('./common');
  2. //@
  3. //@ ### echo(string [,string ...])
  4. //@
  5. //@ Examples:
  6. //@
  7. //@ ```javascript
  8. //@ echo('hello world');
  9. //@ var str = echo('hello world');
  10. //@ ```
  11. //@
  12. //@ Prints string to stdout, and returns string with additional utility methods
  13. //@ like `.to()`.
  14. function _echo() {
  15. var messages = [].slice.call(arguments, 0);
  16. console.log.apply(this, messages);
  17. return common.ShellString(messages.join(' '));
  18. }
  19. module.exports = _echo;