JS Loop melalui input formulir

const form = document.querySelector('form');

// A)
Array.from(form.elements).forEach(el => console.log( el ));

// B)
[...form.elements].forEach(el => console.log( el ));

// C)
for (const el of form.elements) {
  console.log( el );
}
KostasX