Phone Number Validation
Write a function that validates a US phone number. The input phone number will be a string and should return 'Valid' if the phone number is valid and 'Invalid' if it is not. A valid US phone number must be in the format 'XXX-XXX-XXXX' where X is a digit from 0-9.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)