Hi All and Happy New Year!

I’m working on trying find the sum of even values in an array (array is 1000 digits of Pi - variable is “nums”)

I’ve tried several different functions but stuck at the moment (logs an empty array)… my code is below:

```
let nums = [1, 4, 1, 5, 9] // and 995 more numbers
let newArr = [];
const sumEvens = nums => {
for (let i = 0; i < nums.length; ++i) {
if (nums[i] % 2 === 0) {
newArr.push(nums[i]);
}
}
return nums;
};
console.log(newArr);
```

Any hints or advice is greatly appreciated! let me know if you need any further clarification.