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: