From 2f7afd35cd452894b79c42116824a3827330d5c1 Mon Sep 17 00:00:00 2001 From: Rick <121335204+rickcomics@users.noreply.github.com> Date: Sat, 26 Oct 2024 22:23:03 +0300 Subject: [PATCH] Update test.js --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');