Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 575 Bytes

echo.markdown

File metadata and controls

45 lines (29 loc) · 575 Bytes

Echo

In this challenge, your mission is to implement a function called echo.

Iteration One

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'

Iteration Two

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'