<div class="u-3">1</div>
<div class="u-3">2</div>
<button>Click</button>
<div class="out"></div>
button = document.querySelector('button');
button.onclick = () => {
out = document.getElementsByClassName('u-3');
for (let i = 0; i < out.length; i++) {
out.innerHTML = out + '3';
}
}