Pro Course Credit Card Checker: Bug in the valid3 array?


All the valid# arrays instantiated in the beginning have the same amount of elements except for the third one. Is that a bug? Is an element missing?

Credit cards that are part of the Visa, Mastercard and Discover payment networks have 16 digits, while those that are part of the American Express payment network have just 15.

1 Like