Build a Palindrome Checker Project - Build a Palindrome Checker

Tell us what’s happening:

My code works but it is not passing the tests. can someone please help

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="device-width, initial-scale=1.0">
    <title>Panlindrome Checker</title>
    <link href="styles.css" rel="stylesheet">
    <link rel="preconnect" href="">
<link rel="preconnect" href="" crossorigin>
<link href=",wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
    <div class="container">
      <h1>Panlindrome Checker</h1>
      <input type="text" id="text-input"     placeholder="Enter text here" required >
      <button id="check-btn">Check</button>
      <div id="result"></div> 
       <div id="palindrome">
      <p> A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.</p>

    <script src="script.js"></script>
/* file: styles.css */
body {
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100% );
  font-family: "Poppins", sans-serif;

.container {
  text-align: center;
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgb(0, 0, 0, 0.2);
  max-width: 70%;
  transition: transform 0.3s;
  display: grid;
  grid-template-rows: auto auto;

.container:hover {
  transform: translateY(-5px);

h1 {
  color: #333333;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;

  padding: 15px;
  margin: 10px 0;
  border: 2px solid #ccc;
  border-radius: 30px;
  font-family: "Poppins", sans-serif;

input:focus {
  border-color: #fda085;

button {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  background-color: #fda085;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  font-family: "Poppins", sans-serif;

button:hover {
  background-color: #f6d365;
  transform: translateY(-3px);

#result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
/* file: script.js */
document.getElementById('check-btn').addEventListener('click', function() {
    const input = document.getElementById('text-input').value;
    const resultDiv = document.getElementById('result');

    if (!input) {
        alert("Please input a value");

    const normalizedInput = input.replace(/[^a-zA-Z0-9]/g, '').toLowerCase();
    const reversedInput = normalizedInput.split('').reverse().join('');

    if (normalizedInput === reversedInput) {
        resultDiv.textContent = `"${input}" is a palindrome`;
    } else {
        resultDiv.textContent = `"${input}" is not a palindrome`;

Your browser information:

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

Challenge Information:

Build a Palindrome Checker Project - Build a Palindrome Checker

should contain the text "A is a palindrome" .

What I see is instead

“A” is a palindrome

remove the quotes from the text

Thank you very much, much appreciated. That fixed the problem.