An application created using JavaScipt that tells the user if their birth date is a palindrome or not.
Application created using JavaScript that tells the user if their birthdate is a palindrome. If not, then it displays the nearest palindrome date and by how many days user missed it.
- HTML
- CSS
- JavaScript
- User enters their birthdate.
- The user is told whether their birthdate is a palindrome or not. The date is checked in 4 formats: mm-dd-yyyy, dd-mm-yyyy, mm-dd-yy, and yyyy-mm-dd
- If the user's birth date is not a palindrome, the application finds the previous or next nearest palindromic date to the birthday and informs the user by how many days they missed.
- loops
- Palindrome
- Checking palindromes
- String functions
- Finding the previous and next nearest palindrome.