<button>ALERT</button>
button {
font-size: 2rem;
padding: 0.4em 1em;
}
body {
display: grid;
place-items: center;
min-height: 100dvh;
}
const button = document.querySelector("button")
button.addEventListener("click", () => {
alert('안녕하세요! 👋')
})
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.