0

As the title says, I am trying to do form validation with credit cards and the Luhn formula. Any advice is appreciated.
function Luhn(luhn) {
// **** step1: double every other digit, starting at 0
var doubleDigits = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9];
// **** step 2 + 3: any resulting value must be...