Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript loop array

var sum = 0;
for(var i=0; i<arr.length; i++){
	if(arr[i] > arr[1]){
		console.log(arr[i]);
		sum += arr[i];
}
}
return sum;
}
Source by www.hackerhero.com #
 
PREVIOUS NEXT
Tagged: #javascript #loop #array
ADD COMMENT
Topic
Name
7+4 =