Build a Telephone Number Validator

Hi everyone! :wave:

I’m working on the Build a Telephone Number Validator project and wanted to discuss different approaches to solving it.

:white_check_mark: What are the best ways to validate US phone numbers?
:white_check_mark: Should we use regex or other JavaScript methods?
:white_check_mark: Any edge cases I should watch out for?

I’d love to hear your thoughts and see how others are approaching this challenge! Drop your solutions and tips below. :rocket:

Looking forward to learning from you all! :blush:

this is a final project, you should work on it on your own instead of trying to get the solution by others