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');