The number is…
Your job is to validate or reject the US phone number […]. The area code is required. If the country code is provided, you must confirm that the country code is 1. Return true if the string is a valid US phone number; otherwise return false.
I completed this challenge as a way to
the source code on
my Github account.
If you have any suggestion regarding accessibility, optimisation, or anything, I would be extremely happy to hear about them on my GitHub account. Don't hesitate to give me a hand so that I become a better web developper !