Jxrgxn
7/9/2016 - 6:38 AM

revisedAnswer.js

//beginning fuction
function countScores(Array) { 
	array = Array;
	x = 0;
//creating a variable that iterates the array and houses the new info.
//for (var x = 0; x < array.length; x++){
		for (var y in array) {
//define segregation criteria
			if (array[y] > 50){
				x++;
			}
//count input that meets segregation criteria
//return revised info

	}
	
	 return x;

}

scores = [25, 75, 33, 66, 51];