**Tell us what’s happening:**

sumFibs(4000000) when num is equal to 4000000 .The test fail.

**Your code so far**

```
function sumFibs(num) {
let sum = 0;
function fib(e){// 1,1,2,3,5,8,13,21,34
if(e==0||e==1){
return 1;
}else{
return fib(e-1) + fib(e-2);
}
};
for(let i=0;fib(i)<=num;i++){
if((fib(i)+1)%2 == 0){
sum+=fib(i);
}
}
return sum;
}
sumFibs(4000000);
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36`

.

**Link to the challenge:**

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