t elements = document.querySelectorAll('form *') //Selects all children of the form element    const details = formObj(elements);  console.log(details); <form>      <label for='name'>name</label>      <input type='text' id='name' value="Harry"/>        <label for='email'>email</label>      <input type='email' id='email' value="harry@gmail.com"/>        <label for='age'>age</label>      <input type='text' 