Skip to content

Instantly share code, notes, and snippets.

@aarmora
Last active August 7, 2022 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarmora/98e2b1358322b19ef76117dbad5767fd to your computer and use it in GitHub Desktop.
Save aarmora/98e2b1358322b19ef76117dbad5767fd to your computer and use it in GitHub Desktop.
const people = [
{
name: 'Jordan'
},
{
name: 'Jae'
}
];
people.push({
name: 'Another dude'
});
for (let i = 0; i < people.length; i++) {
const person = people[i];
console.log('person', person);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment