Skip to content

Commit f885e32

Browse files
authored
Update test.js
1 parent abf170a commit f885e32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const btn = document.createElement('btn');
22
btn.innerText = "text";
3-
3+
button.addEventListener('click', () => {
4+
alert('Oh, you clicked me!')
5+
})
46
document.body.appendChild('btn');

0 commit comments

Comments
 (0)