title: console out checked radio buttons
body: <p>Im trying to console out a radio button with JS in order to see the value of the checked button. the Js seems to be without syntax error, but it returns undefined:</p>
  <p>this is the HTML:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const firstName = document.querySelector('#FirstName');
  const lastName = document.querySelector('#LastName');
  const email = document.querySelector('#email');
  const comments = document.querySelector('#comments');
  
  let meeting1 = document.querySelector('#meetingtype1');
  let meeting2 = document.querySelector('#meetingtype2');
  let meeting3 = document.querySelector('#meetingtype3');
  let meeting4 = document.querySelector('#meetingtype4');
  
  let meeting;
  
  
  if (meeting1.checked) {
    meeting = meeting1.value;
    console.log(meeting = "1");
  } else if (meeting2.checked) {
    meeting = meeting2.value;
    console.log(meeting = "2")
  } else if (meeting3.checked) {
    meeting = meeting3.value;
    console.log(meeting = "3")
  } else if (meeting4.checked) {
    meeting = meeting4.value;
    console.log(meeting = "4")
  }
  
  const submitform = document.querySelector('#submitform');
  
  submitform.addEventListener('click', function() {
    console.log(` Name: ${firstName.value}, Last Name: ${lastName.value}, Email: ${email.value}, Comment: ${comments.value} Type of meeting: ${meeting}`);
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;fieldset&gt;
    &lt;legend&gt;Would you like to meet for?&lt;/legend&gt;
  
    &lt;label&gt;&lt;input type="radio" id="meetingtype1" name=meetingtype value="coffee" &gt; A coffee&lt;/label&gt;
    &lt;label&gt;&lt;input type="radio" id="meetingtype2" name=meetingtype value="zoom"&gt; A zoom meeting&lt;/label&gt;
    &lt;label&gt;&lt;input type="radio" id="meetingtype3" name=meetingtype value="drive"&gt; A drive to Eilat&lt;/label&gt;
    &lt;label&gt;&lt;input type="radio" id="meetingtype4" name=meetingtype value="chef"&gt; A chef meal&lt;/label&gt;
  
    &lt;button id="submitform" type="submit"&gt;Submit&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>thank you very much!</p>