Tell us what’s happening:
My function passed all test and get all results right expect I got
" Your function is not returning the correct result using our tests values. "
I don’t know what should I do to pass this error?!!!
My code*
function fiboEvenSum(number) {
let fibo = [1, 2];
for (let i = 2; i < number; i++)
fibo.push(fibo[i - 1] + fibo[i - 2])
return fibo.filter(v => v % 2).reduce((p, c) => p + c, 1)
}
Link to the challenge: