**Tell us what’s happening:**

Howdy! I’m attempting to sum the odd fibonacci numbers using a while loop. All tests are passing except for 75024 and I’m out of ideas as to why. I’ve set three variables as the prior number, current number, and fibonacci. While inside the loop `current`

is being added to `prior`

, with `result`

being used as the next number used to calculate the odd digits. If `result`

is odd it is added to `fibonacci`

, if not it is skipped until the next odd number. Prior to entering the if statment, both the prior number is updated to current and the current number is now updated to be the result. The loop runs until `fibonacci`

is greater than or equal to `num`

.

I’ve adjusted the conditions inside the while loop but am plumb out of ideas as to why the code is not working. It’s interesting that 75024 and 75025 return the same result, which leads me to believe it may be the condition of my while loop. If anyone could help me understand the error in my logic it would be much appreciated. Thanks!

```
function sumFibs(num) {
var prior = 0;
var current = 1;
var fibonacci = 1;
while(fibonacci <= num){
var result = prior + current;
prior = current;
current = result;
if(result % 2 != 0){
fibonacci += result;
}
}return fibonacci;
}
sumFibs(75024);
```

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-odd-fibonacci-numbers