Build a Palindrome Checker

I’m a bit confusing since this is my first JS-self projects, so if could please bear with me on where should I start on this problem, why is it, that would be greatly helpful!.

So for the issue:
When you click on the #check-btn element without entering a value into the #text-input element, an alert should appear with the text “Please input a value”.

I understood I need to put something like
if (input === '') { alert('Please input a value'); return;
But not sure where to start.

Also for some reason my Ask for Help button does not work on curriculum, so I couldn’t post this properly, apologise in advance.

Link to the challenge:

Start with what javascript code u need to link ur button to custom function upon click ?

How exactly can I do that please? I usually use the Ask for Help button only.

What problem are you having with the button?

1 Like

Hi there!
Hint: you need to use .eventListener() on button element.

1 Like