title: How to get "unchecked" event from radio input in JavaScript?
body: <p>I noticed that the "change" event only fires one event when the element is checked. But does not seem to fire any event when unchecked, or do I miss something?</p>
  
  <p>I would like to do something on "uncheck" but that does never trigger.</p>
  
  <p>Ideally, I do <strong>not</strong> want to save the inputs in an array and on change check which one is checked or not.</p>
  
  <p>Here is an example, as you can see, "do something" never get’s fired:</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>document.querySelector("input").addEventListener("change", function(ev) {
     console.log(ev.target.checked);
      if(!ev.target.checked) console.log("do something");
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="radio" name="type" checked="checked" value="guest" /&gt;
  &lt;input type="radio" name="type" value="walk_in" /&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This seems so basic… maybe I overlooked something?
  Thank you!</p>