This site runs best with JavaScript enabled. property

Kevin Beck

January 02, 2021

So found out about property today. You can get in-line styles of an element:

let styles =;

Or to add / update in-line styles:

// Remove the existing styles and replaces them with these: = 'color: blue; font-size: 2rem';
// Add to the existing styles with these: += 'color: red;';