From 594b08837a4d9385bedfa4450c67385aeed5084b Mon Sep 17 00:00:00 2001 From: Rick <121335204+rickcomics@users.noreply.github.com> Date: Sat, 26 Oct 2024 22:29:55 +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 c17cd35..d283768 100644 --- a/test.js +++ b/test.js @@ -1,6 +1,6 @@ const btn = document.createElement('btn'); btn.innerText = "text"; -btn.addListClass = "btn"; +btn..classList.add = "btn"; btn.addEventListener('click', () => { alert('Oh, you clicked me!') })