const keyList = document.querySelectorAll('input[type=button]'); const display = document.querySelector('input[type=tel]');
for (let counter = 0; counter < keyList.length; counter++) { console.log (counter);
const key = keyList[counter]; key.onclick = function () { display.value = display.value + key.value; } }