Hello @vickyrai hope you are safe!
Idk if you were able to figure out how to solve this challenge so here I will pass my code which was really inspired in yours. If you have any question or comment let me know! 
const valid1 = [4, 5, 3, 9, 6, 7, 7, 9, 0, 8, 0, 1, 6, 8, 0, 8];
const valid2 = [5, 5, 3, 5, 7, 6, 6, 7, 6, 8, 7, 5, 1, 4, 3, 9];
const valid3 = [3, 7, 1, 6, 1, 2, 0, 1, 9, 9, 8, 5, 2, 3, 6];
const valid4 = [6, 0, 1, 1, 1, 4, 4, 3, 4, 0, 6, 8, 2, 9, 0, 5];
const valid5 = [4, 5, 3, 9, 4, 0, 4, 9, 6, 7, 8, 6, 9, 6, 6, 6];
// Add your functions below:
const validateCred = array => {
let doubleArray = [];
let normalArray = [];
let finalArray = [];
for (let i = array.length - 2; i >= 0; i -= 2) {
let doubleItem = array[i] * 2;
if (doubleItem > 9) {
doubleItem -= 9;
};
doubleArray.push(doubleItem);
}
for (let j = array.length - 1; j >=0; j -= 2) {
let normalItem = array[j];
normalArray.push(normalItem);
}
finalArray = normalArray.concat(doubleArray)
const reducer = (accumulator, currentValue) => accumulator + currentValue;
if (finalArray.reduce(reducer) % 10 === 0) {
return true;
} else {
return false;
}
}
console.log(validateCred(valid1));
Your friend Manuel