Skip to content

This application created using JavaScript checks if the user's birthdate is a palindrome or not. If it's not a palindrome, then it displays the nearest palindrome to the birth date.

Notifications You must be signed in to change notification settings

bharati-21/birthday-palindrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Birthday Palindrome

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.

Live demo of the application


PREREQUISITES

  • HTML
  • CSS
  • JavaScript

WORKING

  1. User enters their birthdate.
  2. 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
  3. 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.

My Learnings

  • loops
  • Palindrome
  • Checking palindromes
  • String functions

Challenges

  • Finding the previous and next nearest palindrome.

About

This application created using JavaScript checks if the user's birthdate is a palindrome or not. If it's not a palindrome, then it displays the nearest palindrome to the birth date.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages