Last active
April 2, 2017 23:42
-
-
Save ar2zee/6b9eb6e0f2ddee692f37f626805fd92e to your computer and use it in GitHub Desktop.
forEach method array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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