Last active
December 17, 2017 13:23
-
-
Save marcusshepp/7b6828a2b118ea59998decfb23c0d1e4 to your computer and use it in GitHub Desktop.
Javascript Arrays
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
// javascript's foreach is cool | |
let arr = new Array(); | |
for (let i = 0; i < 5; i++){ | |
arr.push(i); | |
} | |
arr.foreach(function(item){ | |
console.log(item); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment