Skip to content

Instantly share code, notes, and snippets.

@Alex-Tideman
Created October 13, 2015 15:16
Show Gist options
  • Save Alex-Tideman/bd7643a0afdce129b927 to your computer and use it in GitHub Desktop.
Save Alex-Tideman/bd7643a0afdce129b927 to your computer and use it in GitHub Desktop.
Echo Challenge
function echo(array) {
if(array) {
array.forEach(function(element){
console.log(element);
});
}
}
echo();
echo(['one']);
echo(['one','two','three']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment