Skip to content

Instantly share code, notes, and snippets.

@suhailgupta03
Created July 24, 2023 16:54
Show Gist options
  • Save suhailgupta03/78bd80c7f1fd4998562b8f8250d060ce to your computer and use it in GitHub Desktop.
Save suhailgupta03/78bd80c7f1fd4998562b8f8250d060ce to your computer and use it in GitHub Desktop.
var array1 = [1, 2, 3, 4, 5];
var array2 = [6, 7, 8, 9, 10];
// array1[0] + array2[0]
// array1[1] + array2[1]
for(var i = 0;i < array1.length; i++) {
console.log(array1[i] + array2[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment