Build a Palindrome Checker Project - Build a Palindrome Checker

Tell us what’s happening:

Hey Guys!

Can some please help me with a hint on buttonAlert function. I rewrote the code and adjusted to the previous code I had. Apart from the Alert message, the rest of the Test are Checked!

A hint from you will highly be appreciated!

Your code so far

function  buttonAlert(){
    if(textInput.value === " "){
        alert("Please enter the value")
    }else{
        isPalindrome();
    }
}

Your browser information:

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

Challenge Information:

Build a Palindrome Checker Project - Build a Palindrome Checker

Hello!

You are checking if the input value is a space.
Just remove the space to check for an empty string.

1 Like

Thanks once again! I finally figure it out! Much appreciated

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.