Skip to content

Instantly share code, notes, and snippets.

@SaschaHeyer
Last active February 28, 2018 13:34
Show Gist options
  • Select an option

  • Save SaschaHeyer/6b0f52403e92106604a9b9463fa0c87f to your computer and use it in GitHub Desktop.

Select an option

Save SaschaHeyer/6b0f52403e92106604a9b9463fa0c87f to your computer and use it in GitHub Desktop.
spead
let beers = ['Bitburger','Heineken'];
function logBeers (firstParameter, secondParameter) {
return console.log(`${firstParameter} ${secondParameter}`);
}
logBeers(...beers); // output: Bitburger Heineken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment