+ - =
const btn = document.querySelectorAll('button'); let str = ''; btn.forEach(b => b.onclick = (event) => { let text = event.target.textContent; if (!str.endsWith(text)) str += text;})