Tell us what’s happening:
i’m confuse about “alert” ,it doesn’t work
when i click button , no popup window!
thanks a lot@@
Your code so far
<!-- file: index.html -->
<input id=text-input></input>
<button id ="check-btn"></button>
<div id="result"></div>
/* file: styles.css */
/* file: script.js */
const textInput = document.getElementById("text-input")
textInput.addEventListener("click", alert("Please input a value"))
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Challenge Information:
Build a Palindrome Checker Project - Build a Palindrome Checker