property to get a class anem of a element in JavaScript code example
Example: js get class property
let element = document.querySelector('.preset');
let style = getComputedStyle(element);
let bg = style.backgroundColor;
let element = document.querySelector('.preset');
let style = getComputedStyle(element);
let bg = style.backgroundColor;