Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created June 19, 2018 09:09
Show Gist options
  • Save goofmint/2282cb0b7077d677fd89dc715028fdcc to your computer and use it in GitHub Desktop.
Save goofmint/2282cb0b7077d677fd89dc715028fdcc to your computer and use it in GitHub Desktop.
for (let i = 0; i < ary.length; i += 1) {
console.log(i, ary[i]);
}
// -> 0, "a"
// -> 1, "b"
// -> 2, "c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment