assigning class name in html code example
Example: html 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;