title: How to use variable to dynamically change object attribute?
body: <pre><code>let property = $(this).val();
  let property_name = this.dataset.property;
  
  
  headObject[selected].property_name = property;
  });
  </code></pre>
  
  <p>property_name is a variable not key. Are there anyway to handle this? Thank you in advance! </p>