Hello! Day 2 working on this project, feeling like a dummy)) Here is what I have so far, I want to know if I am on a right track.

```
function validateCred(array){
let newArray = [];
for(let i = array.length - 1;i >= 0; i-=2){
let doubleValue = array[i] * 2
if(doubleValue < 9){
doubleValue =- 9;
}
newArray.push(doubleValue);
let sum = newArray.reduce((a, b)=> a + b, 0);
if(sum % 10 === 0){
return true;
}else{
return false;
};
}
```