class get js code example
Example 1: js get class property
let element = document.querySelector('.preset');
let style = getComputedStyle(element);
let bg = style.backgroundColor;
Example 2: how to create class in javascript
class ClassName
{
}