In this challenge, your mission is to implement a function called echo
.
echo
should take a collection of strings and log each of them to the console independently.
For example:
echo();
// Does not log anything.
echo(['one']);
// Logs:
// 'one'
echo(['one', 'two', 'three']);
// Logs:
// 'one'
// 'two'
// 'three'
In the second iteration, echo
should not require the arguments to be an array.
echo('one');
// Logs:
// 'one'
echo('one', 'two', 'three');
// Logs:
// 'one'
// 'two'
// 'three'