Napisz program, który na podstawie numeru karty odpowie czy ma doczynienia z Visą, MasterCard, a może AmericanExpress.
Co wiemy o tych numerach tych kart?
- All Visa card numbers start with a 4. New cards have 16 digits. Old cards have 13.
- MasterCard numbers either start with the numbers 51 through 55 or with the numbers 2221 through 2720. All have 16 digits.
- American Express card numbers start with 34 or 37 and have 15 digits. (Skorzystaj z funkcji w Js)