Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

multiply arrays javascript

var sum = 0;
for(var i=0; i< arr1.length; i++) {
    sum += arr1[i]*arr2[i];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiply #arrays #javascript
ADD COMMENT
Topic
Name
4+4 =