diff --git a/22meanmode.js b/22meanmode.js index 99d261e..118d6da 100644 --- a/22meanmode.js +++ b/22meanmode.js @@ -3,6 +3,7 @@ function MeanMode(arr) { var mode; //creating a variable for future mode var mean; //creating a variable for future mean var sum = 0; //initialzing a sum count + var count = 0; for ( var i = 0; i < arr.length; i++ ) { //cycling through the array of numbers sum += arr[i]; //adding numbers together for the full sum @@ -17,4 +18,4 @@ function MeanMode(arr) { } } return mode === mean; //check to see if the mode and mean are equal -} \ No newline at end of file +}