Skip to content

Instantly share code, notes, and snippets.

@micheleriva
Last active February 15, 2019 16:50
Show Gist options
  • Save micheleriva/1804e30f08b6d52b63758247f7f47a64 to your computer and use it in GitHub Desktop.
Save micheleriva/1804e30f08b6d52b63758247f7f47a64 to your computer and use it in GitHub Desktop.
var arr = [0, 1, 2, 3, 4, 5];
for (var i = 0; i < arr.length; i++) {
arr[i] = i * 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment