hello every body I am in the problem N.2 of Project Euler challenges and that’s my solution
`
function fiboEvenSum(number) {
// You can do it!
let prev = 1 ;
let next = 2 ;
let sum = 2 ;
for ( let i = 0 ; i<number ; i++) {
[prev,next] = [next,prev+next] ;
if(next%2===0) sum+=next ;
}
return sum;
}`
and I got all tests correct except that test “Your function is not returning the correct result using our tests values.”
and I don’t know why I get this wrong test ?
any ideas ? may be its a bug .