Skip to content

Instantly share code, notes, and snippets.

@kaw2k
Created January 23, 2016 01:37
Show Gist options
  • Save kaw2k/8dfdeb6541d69652fd9c to your computer and use it in GitHub Desktop.
Save kaw2k/8dfdeb6541d69652fd9c to your computer and use it in GitHub Desktop.
var numbers = [1, 2, 3];
var result = [];
for (var i = 0; i < numbers.length; i++) {
result.push(numbers[i] + 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment