title: javascript styling element with custom function
body: <p>I want to style element in javascript easily but this function doesn't work</p>
  <pre><code>const addStyles = function (el, styles) {
      Object.assign(el.style, styles);
  }
  </code></pre>