Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.