Skip to content

Instantly share code, notes, and snippets.

@ar2zee
Last active April 2, 2017 23:42
Show Gist options
  • Save ar2zee/6b9eb6e0f2ddee692f37f626805fd92e to your computer and use it in GitHub Desktop.
Save ar2zee/6b9eb6e0f2ddee692f37f626805fd92e to your computer and use it in GitHub Desktop.
forEach method array
var donuts = ['sanya', 'andrey', 'petya', 'ksusha'];
donuts.forEach(function(donut){
donut += ' HOLE';
donut = donut.toUpperCase();
console.log(donut);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment