Code: Select all
numberInput = document.getElementById('number-input');
< /code>
In HTML, "Number-Input" ist Folgendes: < /p>
Code: Select all
function processInputs(list)
let total = 0;
// add the items in list to a total
for (const item of list) {
total += item;
}