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