title: event.id undefined in Javascript?
body: <p>I searched previous questions but the answers don't seem to contribute to my problem. </p>
  
  <pre><code>$("button").on("click", function (event) {
    var userChosenColor = event.id;
  });
  
  console.log(userChosenColor);
  </code></pre>
  
  <p>In the code above the console log shows that the userChosenColor is not defined. I changed it to </p>
  
  <pre><code>event.target.id
  </code></pre>
  
  <p>(although I don't really know what is target) but I can't get the id successfully. </p>