Skip to content

Instantly share code, notes, and snippets.

@codebubb
Created October 23, 2023 10:15
Show Gist options
  • Save codebubb/bf0abbf90a75e00c1c2f173c095eaa12 to your computer and use it in GitHub Desktop.
Save codebubb/bf0abbf90a75e00c1c2f173c095eaa12 to your computer and use it in GitHub Desktop.
JavaScript Exercise 02: Valid Zip Codes

JavaScript Exercises: Exercise 02

Valid Zip Codes

Write some code that validates a Zip code.

The rules for a valid zip code are as follows:

  • Contain only numeric values (no non-digits allowed).
  • Has no spaces
  • Is more than 5 digits in length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment