title: Assign style from variable EXCEPT for a few properties
body: <p>I wanted to change the properties of the div EXCEPT for the <code>margin-top</code> and <code>margin-left</code> properties</p>
  <pre><code>const alphaClearNo = &quot;font-family: chivo; color: #4466AA; font-size: 36px; font-weight: bold; position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: block; padding: 0; text-align: center; display: flex; justify-content: center; align-items: center;&quot;;
  const alphaClearYes = &quot;font-family: chivo; color: #6677BB; font-size: 32px; font-weight: normal; position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: block; padding: 0; text-align: center; display: flex; justify-content: center; align-items: center;&quot;;
  
  var alphaLetter;
  createAlphaLetter = new alphaLetter(&quot;A&quot;, -360, 80);
  
  function alphaLetter(letter, x, y) {
      let ac = document.createElement(&quot;div&quot;);
      ac.innerHTML = letter;
      ac.id = letter;
      ac.style = alphaClearNo;
      ac.style['margin-left'] = x + &quot;px&quot;;
      ac.style['margin-top'] = y + &quot;px&quot;;
      
      document.body.appendChild(ac);
  }
  
  var alphaWord = &quot;FLOCCINAUCINIHILIPILIFICATION&quot;
  
  function checkAlphaClear() {
      if (alphaWord.includes(&quot;A&quot;)) {
          document.getElementById(&quot;A&quot;).style = alphaClearYes;
      }
  } // because margin-top and margin-left weren't defined in alphaClearYes, it just resets to 0 and ends up on the center of the screen
  
  checkAlphaClear();
  </code></pre>
  <p>I don't want to write each <code>margin-top</code> and <code>margin-left</code> properties after that because that would mean I'll do that for the rest of the 25 letters.</p>
  <p>Is there a more efficient way to do assign the style but with those 2 properties unchanged?</p>