Create a function validCard to validate a Credit Card number with the Luhn Alogrithm implemented in React.js
- Take the last to second digit in a series (credit card number)
- Double the digit and every other digit until reaching the end (or the beginning of the sequence)
- Add all digits in modified number
- If total is divisible by 10, it is valid otherwise it is invalid
- JSX, Sass
- React.js