The Palindrome Checker App is a simple web application that allows users to check whether a given word, phrase, or number is a palindrome. The application takes user input, processes the text using JavaScript, and determines whether the input reads the same forward and backward.
This project was built as part of a learning exercise to practice JavaScript string manipulation, DOM interaction, and basic web development concepts.
A palindrome is a word, phrase, number, or sequence of characters that reads the same both forward and backward.
| Input | Result |
|---|---|
| racecar | ✅ Palindrome |
| madam | ✅ Palindrome |
| level | ✅ Palindrome |
| hello | ❌ Not a palindrome |
| world | ❌ Not a palindrome |
Palindromes can also exist in sentences when spaces and punctuation are ignored.
Example:
A man a plan a canal Panama
- 📝 Accepts user input (words or phrases)
- ⚡ Instant palindrome checking
- 🔄 String reversal logic implemented in JavaScript
- 📊 Displays clear result messages
- 🎨 Simple and clean user interface
- 👨💻 Beginner-friendly implementation
This project is built using fundamental web technologies:
Used to create the structure of the application, including:
- Input field
- Button to trigger the check
- Section to display results
Used for styling and layout, including:
- Page layout
- Button styling
- Text formatting
- Simple UI design
Handles the core logic of the application, including:
- Reading user input
- Processing and cleaning the input
- Reversing the string
- Comparing original and reversed strings
- Displaying the result on the page
PalindroneCheckerApp/
│
├── index.html # Main HTML structure of the app
├── styles.css # CSS styling for the interface
├── script.js # JavaScript logic for palindrome checking
└── README.md # Project documentation
The palindrome check follows these steps:
The program reads the text entered by the user in the input field.
The input is processed to ensure consistent comparison:
- Convert text to lowercase
- Remove spaces or special characters (optional improvement)
Example:
Input: RaceCar
Normalized: racecar
The program reverses the string using JavaScript methods.
Example:
Original: racecar
Reversed: racecar
If:
original === reversed
Then the word is a palindrome.
Otherwise, it is not a palindrome.
git clone https://github.com/devcrazy2812/PalindroneCheckerApp.gitcd PalindroneCheckerAppSimply open the index.html file in your web browser.
Example:
Right Click → Open With → Browser
Input:
racecar
Output:
✅ racecar is a palindrome
Input:
hello
Output:
❌ hello is not a palindrome
This project was built to practice and understand:
- JavaScript string manipulation
- DOM manipulation
- Handling user input
- Writing basic algorithms
- Structuring a small frontend project
- Using Git and GitHub for version control
Some features that could improve the project:
- 🔤 Ignore punctuation and special characters
- 🧾 Support full sentences
- 🎨 Improve UI with modern styling
- 📱 Add responsive design
- ⚡ Add animations for results
- 🌐 Deploy the app online
If deployed in the future, the live application link can be added here.
Example:
https://your-live-app-link.com
GitHub Profile
https://github.com/devcrazy2812
If you found this project helpful or interesting:
⭐ Star the repository 🍴 Fork the project 🧠 Use it for learning or improvements