Build a Palindrome Checker Project - Build a Palindrome Checker

Tell us what’s happening:

what could be wrong please
im concerned about the last two instructions because they are what is left and ive taken the necessary steps but still not passing through

Your code so far

<!-- file: index.html -->

/* file: script.js */

/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Build a Palindrome Checker Project - Build a Palindrome Checker

im sorry about the code
but what could the problem be

please delete all of this code.
This code is what is termed as ‘hard-coding’ and is not acceptable for an fCC project.
You need to write code that works for any input, irrespective of what it is.

i dont understand, please can you elaborate more ?

do you remember when you built the gradebook app?
It had a function to find the average. This function used parameters to work and did not hardcode the student scores.

An example of hardcoding is what you did above. Where you typed every single testcase and its result into your code.
An example of -not- hardcoding, it to assume you don’t know what the testcase will be and just deal with the input like a black box. The input can be anything.
You need to figure out if any word I type, no matter what it is, is a palindrome.

ohh now i understand, thank you so much

1 Like