JavaScript Algorithms and Data Structures Projects Telephone Number Validator

It definitely does. “Practice makes perfect” applies here without equivocation.

Also, if you want to learn about what other solutions there are, here’s one I had: Phone number Validator. Not able to pass 3 tests. Please help - #4 by gaac510
Hopefully it can help you learn a thing or two.