FreeCodeCamp JavaScript Algorithms and Data Structures Project
Telephone Number Validator
Check if the passed string looks like a valid US phone number.
The user may fill out the form field any way they choose as long as it has the format of a valid US number. The following are examples of valid formats for US numbers: