know what of this buttons is the button that was clicked?
Use id <button id="button-create-rainbow"> Then get the button by id document.getElementById('button-create-rainbow') Add a click event listener to it
e.target on the click event
Обсуждают сегодня