Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button type='button'>1</button>
- <button type='button'>2</button>
- <button type='button'>3</button>
- const buttons = document.querySelectorAll('button');
- buttons.forEach((btn) => {
- btn.addEventListener('click', detect);
- });
- const detect = () => {
- //
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement