Skip to content

Build JavaScript algorithm to validate number format for US telephone number

Notifications You must be signed in to change notification settings

FitzBrendan/tel-num-validator-freeCodeCamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

tel-num-validator-freeCodeCamp

Build JavaScript algorithm to validate number format for US telephone number

Created 3 solutions for telephone number validation

  1. created separate Regex tests for format variances, dashes, spaces, parentheses
  2. created one Regex utilizing the ? operator, match zero or one
  3. created function to eliminate invalid numbers

About

Build JavaScript algorithm to validate number format for US telephone number

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published