Validate and Fix Phone Number with JavaScript
Photo by James Sutton on Unsplash
There is a standard for the phone number called ‘E.164’.
It says that the phone number should have a ‘+’ sign at the start and a maximum of 15 digits.
So, our JavaScript should:
Check if there is a ‘+’ sign at the s...
vchkhr.com1 min read