Build a Palindrome Checker Project - Build a Palindrome Checker

Tell us what’s happening:

const checkBtn = document.getElementById(“check-btn”)
checkBtn.AddEventListener(“click”,()=> {
const textInput = document.getElementById(“#text-input”);
const input = textInput.value();
const result = document.getElementById(“#result”);
if(input === “”){
alert(“Please input a value”)
}
})
I can’t figure out what’s wrong with.

Your code so far

<!-- file: index.html -->
<input id = "text-input" type="text" required>
<button id = "check-btn">Check</button>
<p id= "result"></p>
/* file: script.js */
const checkBtn = document.getElementById("  #check-btn")
  
checkBtn.AddEventListener("click",()=> {
  const textInput = document.getElementById("#text-input");
  const input = textInput.value();
  const result = document.getElementById("#result");
  if(input === ""){
     alert("Please input a value")
  }
})    
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15

Challenge Information:

Build a Palindrome Checker Project - Build a Palindrome Checker

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!