Answers for "multiplying over an array js"

2

multiply arrays javascript

var sum = 0;
for(var i=0; i< arr1.length; i++) {
    sum += arr1[i]*arr2[i];
}
Posted by: Guest on August-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language