I just really cant seem to write a function that returns the sum off all the odd numbers. I do it the way I was shown but when I put it on the compilers undefined

function sum_even(arr){

var sum = 0;

for(var i = 5; i< 429; i++) {

if(i % 2 === 0) {

sum = sum + i;

}

}

return sum;

}

The way I thought it should work is i would need to make a placeholder first so I set my sum = 0. I want to return all the values that are even from the numbers 5 through 428 so I make a for loop with a conditional statement that checks if a number is even. The numbers that are even are added to sum all the way until the for loop stops at 428. So can some one help me understand why nothing is being returned. It would be a great help