Set multiple styles in JS with cssText

If you want to add multiple styles to an element via JavaScript, and you don’t care about over-riding any existing style attribute it may have, you can use cssText to do that. = 'height: 100px; opacity: 1;';

This saves having to write two separate lines for each style update.