diff --git a/test.js b/test.js index a39ec45..f4ac993 100644 --- a/test.js +++ b/test.js @@ -1,6 +1,6 @@ const btn = document.createElement('btn'); btn.innerText = "text"; -button.addEventListener('click', () => { +btn.addEventListener('click', () => { alert('Oh, you clicked me!') }) document.body.appendChild('btn');