Skip to content

Aelkoulali/Telephone-Number-Validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—‚๏ธ Telephone Number Validator ๐Ÿ“žโ˜Ž๏ธ

โžก๏ธ Key Concepts :

โœ… regex

โœ… regex.test( )

โœ… addEventListener( )

โœ… getElementById( )

โ„น๏ธ In the US, phone numbers can be formatted in many ways. Here are some examples of valid formats for US phone numbers:

โ˜Ž๏ธ 1 555-555-5555

โ˜Ž๏ธ 1 (555) 555-5555

โ˜Ž๏ธ 1(555)555-5555

โ˜Ž๏ธ 1 555 555 5555

โ˜Ž๏ธ 5555555555

โ˜Ž๏ธ 555-555-5555

โ˜Ž๏ธ (555)555-5555

Note that the area code is required. Also, if the country code is provided, you must confirm that the country code is 1.

Releases

No releases published

Packages

No packages published