# Build a Palindrome Check Project

**URL:** <https://forum.freecodecamp.org/t/build-a-palindrome-check-project/709540>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [September 5, 2024, 4:22am UTC](https://forum.freecodecamp.org/t/build-a-palindrome-check-project/709540 "2024-09-05T04:22:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hbar1st](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hbar1st/32/372649_2.png) [@hbar1st](https://forum.freecodecamp.org/u/hbar1st)\
**Post date:** [September 5, 2024, 2:17pm UTC](https://forum.freecodecamp.org/t/build-a-palindrome-check-project/709540/5 "2024-09-05T14:17:40Z")

</div>

> [@melh14](#):
>
> `if (checkPalindromeInput == "not a palindrome") {`

It looks like you have hard-coded conditionals or variables that check for specific expected values. That is not solving this problem in the general case. Imagine if you were given different input values. Would your code be able to solve those problems?

To find out more about what hard-coding is or about why it is not suitable for solving coding questions, please read this post: [Hard-coding For Beginners](https://forum.freecodecamp.org/t/hard-coding-for-beginners/703263)

Let us know if you have a question about how to make your code more flexible.

---

_[View the full topic](https://forum.freecodecamp.org/t/build-a-palindrome-check-project/709540)._
