document .querySelectorAll("input") .forEach((elem) => elem.addEventListener("keyup", calculateSum));