Skip to content

Instantly share code, notes, and snippets.

@marcusshepp
Last active December 17, 2017 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marcusshepp/7b6828a2b118ea59998decfb23c0d1e4 to your computer and use it in GitHub Desktop.
Save marcusshepp/7b6828a2b118ea59998decfb23c0d1e4 to your computer and use it in GitHub Desktop.
Javascript Arrays
// 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