Build JavaScript algorithm to validate number format for US telephone number
- created separate Regex tests for format variances, dashes, spaces, parentheses
- created one Regex utilizing the ? operator, match zero or one
- created function to eliminate invalid numbers