RickBacci
10/13/2015 - 3:26 PM

echo.js

function echo(args) {
  
  if(Array.isArray(args)) {
    args.forEach(function(element) {
      console.log(element);
    });
  } else {
    for (i = 0; i < arguments.length; i++) {
       console.log(arguments[i]);
    }
  }
}

 // echo();
  echo(['one', 'two', 'three']);
  echo('one', 'two', 'three');