**Tell us what’s happening:**

Am i failing to understand the question. It says sum of even valued terms

e.g first 10 sequence is

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, …

even valued terms here are 2,8,34, -> give a total of 44

Please help maybe am I interpreting things wrong or my brain is tired today…???

**Your code so far**

```
function fiboEvenSum(number) {
// Yes I can do it!//a bit of dynamic programming trickery ...
// recursion is expensive time efficieny and space-stacks upon stacks..
let fibs = [1,2];
if(number<=2) {
return fibs[1]
};
let j= 2;
let sum = fibs[1];
while(j<number) {
let nextFib = fibs[j-1] + fibs[j-2];
sum = nextFib%2==0? sum+nextFib: sum;
j++;
}
return sum;
}
fiboEvenSum(10);
```

**Your browser information:**

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

.

**Link to the challenge:**

https://learn.freecodecamp.org/coding-interview-prep/project-euler/problem-2-even-fibonacci-numbers