Telephone Number Validator

from FreeCodeCamp

Enter a telephone number to validate it

Removes any character other that digits and parentheses.



The number is…

___

The project

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 practice and learn more about JavaScript. You can find 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 !

Check my portfolio on www.camillecroquet.fr