Credit Card Checker: Solution

Here is my solution for the credit checker project on the javascript course.
Feedback is highly appreciated.

Hi and thanks for sharing your solutions. I gained some insight on how to apply the array functions and methods to this program. I am just a bit confused as to why all of the digits were doubled. I understood the instructions to state that every other digits from the right should be doubled. Does [every other] mean to skip one digit in the iteration? For instance (i-2). Thanks for your assistance

From this code:
if (((i - arr.length) % 2) === 0)
{ newArray.push((arr[i]) * 2);} else {newArray.push((arr[i]) );}

you can see that I’m only doubling digits with an even index.

Thanks. Got it!!! I understand the technique now.