Can anyone help me pass the first step where I can check the value of the string is empty?
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css">
<script src="script.js"></script>
<title>Build a Palindrome Checker</title>
</head>
<body>
<div id="main">
<h1>Palindrome Checker</h1>
<input id="text-input" />
<button id="check-btn">Check</button>
<p id="result"></p>
<div>
</body>
</html>```
const textInput = document.getElementById('text-input');
const checkBtn = document.getElementById('check-btn');
checkBtn.addEventListener('click', checkVal);
function checkVal() {
if (textInput.value === "") {
alert("Please input a value");
}
}